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 : Pass-through query - Returns RecordsSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Pass-through query - Returns Records 
 Author   Message 
  mkettner 
  
 Group: Members 
 Posts: 8 
 Joined: 2006-11-01 
 Profile
 Posted : 2007-01-13 05:44:27

I run the following pass-through query:

SELECT Charge.TxnID, Charge.TxnNumber, charge.RefNumber  FROM Charge NOSYNC
where charge.txnid = '7C46C-1162231634'

and it returns a record.  When I run the following pass-through query:

update charge set refnumber='2222' where charge.TxnID= '7C46C-1162231634'

I get the following message:

Pass-through query with ReturnsRecords property set to True did not return any records.

The returns records property IS set to True.  When I change it to No, it no longer recognizes the connection string.

What am I doing wrong?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-13 13:12:39

Sorry, you didn't say what the actual connection error is? No rows are returned when you run UPDATE queries. Try checking the connection string for the pass-through query:

and remove any additonal parameters that MS Access tends to add. You only need the above three parameters.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to