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 : Comma or apostrophe (single quote) in field causing lexical errorSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Comma or apostrophe (single quote) in field causing lexical error 
 Author   Message 
  Lee 
  
 Group: Members 
 Posts: 5 
 Joined: 2008-05-20 
 Profile
 Posted : 2008-05-25 18:26:29
A few of the Vendors and Customers I am attempting to insert into QB have either a comma or a single quote in the name and is apparently causing a lexical error to be generated when attempting to insert through QODBC.  For example: Fred's Rock Shop       My Corporation, Inc.

Is there a way to overcome this or am I going to be required to strip them out?

Thanks for any help. 

 
Regards.

Lee 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-26 17:22:59
See: How do I use single quotes within a quoted string?  

  Top 
  Lee 
  
 Group: Members 
 Posts: 5 
 Joined: 2008-05-20 
 Profile
 Posted : 2008-05-27 02:21:32
Thank you.

After posting I did discover the topic on working around the single quote issue.

Is there a similar, or other work around for the comma issue?
 

 
Regards.

Lee 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-27 07:29:59

There is no comma issue, this inserted without any problems:

INSERT INTO "customer" ("Name","LastName","FirstName","BillAddressAddr1",
"BillAddressAddr2","BillAddressCity","BillAddressState","BillAddressPostalcode")
values ('O''Con,ner, Shane','O''Con,ner','Shane','Shane O''Conner','561 W 4th St.',
'Carlsbad','CA','92009')

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to