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 : Help with Microsoft Access when adding payments to InvoicesSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Help with Microsoft Access when adding payments to Invoices 
 Author   Message 
  Paul O'Brien 
  
 Group: Members 
 Posts: 2 
 Joined: 2006-04-07 
 Profile
 Posted : 2006-04-07 00:36:48

Apologies for posting in the wrong forum - I couldn't see a forum for posting queries with Microsoft Access.

I am trying to integrate Quickbooks with Microsoft Access to post transactions directly from a simple POS screen to Quickbooks.

Basically, I am taking each line of the POS screen, adding it to InvoiceLine, closing it by creating a Line in Invoice, and then attempting to add a payment for the invoice just created.

If I have optimization turned on, then the whole process runs very quickly, but it will not post the payment against the invoice - I think because the Invoice table has not refreshed, and therefore it can't retrieve the TxnID

If I turn optimization off, it all runs perfectly - but incredibly slowly.

Any advice please?

Paul

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-07 08:39:48

Actually you should be using SP_LASTINSERTID to find TxnID of the Invoice immediately after you created all the lines in the Invoice:

SP_LASTINSERTID Invoice

And then when you're finished making the payments you can resync your optimized Invoice table by running:-

sp_optimizefullsync Invoice

 

  Top 
  Paul O'Brien 
  
 Group: Members 
 Posts: 2 
 Joined: 2006-04-07 
 Profile
 Posted : 2006-04-07 16:38:15

Tom

Thanks - how do I call this from within Access?

Paul

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-07 17:06:13
See: How do I create a Pass-Through Report using Microsoft Access 2003?  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to