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 : SP_LASTINSERTID for TxnLineIDSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 SP_LASTINSERTID for TxnLineID 
 Author   Message 
  KofK 
  
 Group: Members 
 Posts: 43 
 Joined: 2006-04-04 
 Profile
 Posted : 2006-08-18 01:13:26
Is there away to retrieve all the TxnLineIDs for an invoice I just created? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-08-18 13:47:52

Sure, the SP_LASTINSERTID Invoice stored procedure will give you the TxnID for the invoice you just created (inserted). So just use it to find all the lines for the invoice in the InvoiceLine table like this:

select InvoiceLineTxnLineID, InvoiceLineDesc from InvoiceLine
where TxnID='5BCE-1197765797'

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to