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 : [QODBC] Expected lexical element not foundSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 [QODBC] Expected lexical element not found 
 Author   Message 
  Gary 
  
 Group: Members 
 Posts: 1 
 Joined: 2006-09-12 
 Profile
 Posted : 2006-09-12 04:20:44

I am getting this error on my insert statement.  I have checked my select statement and all the columns are there.  Can any one give me an idea as to why?

"INSERT INTO ItemNonInventory(Name,SalesAndPurchaseSalesDesc,SalesAndPurchaseSalesPrice,
SalesAndPurchaseIncomeAccountRefFullName,SalesAndPurchasePurchaseDesc,
SalesAndPurchasePurchaseCost,SalesAndPurchaseExpenseAccountRefFullName)
values(" & PrepStr(aFull, 31) & "," & PrepStr(Desc) & "," & Price & "," & PrepStr(COGS) & "," & PrepStr(PurDesc) & "," & Cost & "," & PrepStr(ACCNT)

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-09-12 09:05:28

All the string values need to have single quotes ' around them - not double quotes ".  Also a closing ') is missing.

See: How do I insert data into ItemNonInventory?  for more.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to