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 SQL: Key field not allowed in Customer update?Search Forum

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

 New Topic 
 
 Post Reply 
[1]  
 QODBC SQL: Key field not allowed in Customer update? 
 Author   Message 
  Bob 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-04-17 
 Profile
 Posted : 2006-04-20 10:27:12

We'd like to UPDATE Name and AccountNumber fields in a QB Pro 2004 Customer
List, using ListID as a key in the WHERE condition:

UPDATE customer SET ;
Target.Name = Source.Name, ;
Target.AccountNumber = Source.AccountNumber ;
WHERE Target.ListID = Source.ListID

QODBC returns the error: "Field not allowed in update."

The QODBC Table Detail Reference indicates that Name and AccountNumber are
both updateable fields, so we're wondering:

Is ListID the disallowed field referred to in the error msg, and does this mean we can't use a QB key in our WHERE clauses?

Thanks so much,

Bob

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-20 12:14:25

Looking at:

Select ListId, Name, FullName, AccountNumber from Customer

and running this update command:

UPDATE Customer SET
Name= 'Family Room2',
AccountNumber = '100-999'
WHERE ListID = '160000-933272658'

worked correctly as seen here:

Select ListId, Name, FullName, AccountNumber from Customer unoptimized

 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to