Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Microsoft OLE DB Provider for ODBC Drivers error '80004005'Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v8 Forum

 New Topic 
 
 Post Reply 
[1]  
 Microsoft OLE DB Provider for ODBC Drivers error '80004005' 
 Author   Message 
  cgi911 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-11-04 
 Profile
 Posted : 2007-11-04 19:06:00
Hi,

As u can see fromt h code below i'm trying to build an ASP page that will update the invoices' total and sales tax from my own system and also at the same time pull the isPaid field and mark it paid in my system.

when i run this code on an invoice its pulls the data ok but returns this error when it tries to update the filed

im running the eval right now testing to see if it wil work for us..

please advise

thanks

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[QODBC] Field not allowed in update.


sub openQBConn()
    'use appropriate connection string
    const strConn="Driver={QODBC Driver for QuickBooks};DFQ=\\cgi03\Qbooks\Mizrahi Consulting LLC.qbw;OpenMode=M;OLE DB Services=-2;"
'    const strConn="Provider=MSDASQL.1;Persist Security Info=False;Data Source=QuickBooksData;OLE DB Services=-2;"
    Set qdbc = Server.CreateObject("ADODB.Connection")
    qdbc.open strConn
end sub

sub closeQBConn()
    if isobject(qdbc) then
        if qdbc.State = adStateOpen then
            qdbc.Close
        end if
        set qdbc = nothing
    end if
end sub

Sub QBUpdateInv(INV_NO)
    SalesTaxTotal    =    RetrieveInvField(INV_NO,"TAX")
    InvTotal        =    RetrieveInvField(INV_NO,"INV_TOTAL")
    Call OpenQBConn()
    QBUpdateInvSQL=     "UPDATE Invoice SET " & _
                        "SalesTaxTotal = " &  SalesTaxTotal & " "&_
                        "where RefNumber='"&INV_NO&"'"
    Set QBUpdateInvRS = qdbc.Execute(QBUpdateInvSQL)
    QBUpdateInvRS.Close 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-11-06 09:17:27

The SalesTaxTotal cannot be updated. For the rules use:

sp_columns invoice

You will need to update the actual InvoiceLines "Items" with the new sales tax values.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to