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 : Help..Cannot Add Bill in Quickbooks 2008 Canadian VersionSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 Help..Cannot Add Bill in Quickbooks 2008 Canadian Version 
 Author   Message 
  Don 
  
 Group: Members 
 Posts: 17 
 Joined: 2006-05-03 
 Profile
 Posted : 2008-07-28 10:45:17

The following SQL statement worked fine in previous versions of Quickbooks but I cannot figure out why it is giving me an error???

Here is the statement :

sSQL = "INSERT INTO BillItemLine (VendorRefListID, RefNumber, ItemLineItemRefListID, ItemLineDesc, " & _
                  "ItemLineQuantity, ItemLineCost, Memo, TxnDate, TermsRefListID) " & _
                   "VALUES ('" & strVendorRefListID & "', '" & strRefNum & "', '" & strItemLineItemRefListID & "', " & _
                   "'" & strItemLineDesc & "', 1, " & dblItemLineCost & ", 'Bill created by Someone', {d '" & strTxnDate & "'},  '" & strTermRefListID & "')"

I've checked and double checked all of the variable and they look fine....any ideas

Don

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-07-28 13:57:49

Go the the QODBC Setup Screen and the Messages Tab, click on the Review QODBC Messages Log, scroll to the bottom and paste the error as well as the statement that produced the error here. One isn't much good without knowing the other.

 

  Top 
  Don 
  
 Group: Members 
 Posts: 17 
 Joined: 2006-05-03 
 Profile
 Posted : 2008-07-28 16:07:34

Thanks for your speedy reply Tom, (I believe the last time we corresponded was a couple of years ago and you were right on top of things then too!)

Turns out I did a little more research on how  to read the trace log and determined that I had somehow electronically created a duplicate vendor and VendorRefListID...hence when the Bill entry tried to upload it was using the wrong VendorRefListID and would not load. It working fine now. ...but I'm still puzzled as to why the QODBC driver would let it happen.

When I checked the entry date & time of the duplicate Vendor they we 1/2 an hour apart so it was like one was held in Cache. Have you heard of this kind of problem before? ...I may have had the optimizer on at the time. It is working fine with the optimizer off.

Thanks again for your time....

Don

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-07-28 18:37:50
As far as creating Vendors is concerned, it's just Vendor.Name that must be unique across Customer, Employee, Vendor, and OtherName. I suspect your Vendor names are different?  INSERTS are never cached other than when the FQ SaveTOCache flag is used. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to