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

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 Expected lexical element not found 
 Author   Message 
  victorking 
  
 Group: Members 
 Posts: 7 
 Joined: 2008-05-07 
 Profile
 Posted : 2008-06-14 01:47:31

 

This insert stmt was generated by my VBScript program

"INSERT INTO InvoiceLine ( 

 

CustomerRefListID  ,

 

 RefNumber  ,

 

InvoiceLineItemRefListID  ,

 

InvoiceLineDesc  ,

 

InvoiceLineQuantity  ,

 

InvoiceLineServiceDate  ,

 

FQSaveToCache ) 

 

VALUES (

 

' 30000-1074158302',

 

'2006W000171',

 

'10000-1074158529',

 

'00000058 Kg      049 Days     574-3004 0850',

 

2842 ,

 

{d'9/8/2007'} ,

 

0 )"

 

with the following errors

Microsoft OLE DB Provider for ODBC Drivers (384, 17) : [QODBC] Expected lexical element not found: <identifier>

1. Is my inset stmt correct????

2. How do i convert my SQL server date format '9/8/2007' to QB data format '2007-8-9' ???

Thanks

 


 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-06-16 07:35:45
No, the insert statement is incorrect, {d'9/8/2007'} should be: {d'2007-08-09'} 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to