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 : VBA ExamplesSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 VBA Examples 
 Author   Message 
  Young Rembrandts 
  fd6e0_2_new_logo_3_colorsmall.jpg
 Group: Members 
 Posts: 10 
 Joined: 2007-04-15 
 Profile
 Posted : 2007-09-07 04:35:35

I have developed an Access database to maintain the operational elements of my service business.  On the other hand, all financial management is accomplish exclusively through Quick Books.

I want to add customers, jobs, invoices and payment to QB from my Access database using VBA routines initated by a command button on my Access form.  Specifically, I want to add the data to QB only for the current record as displayed on the Access form.  I am unsure of how to do the "where" condition on my sql statement.

Finally, I need to retrieve the record ID's for all the added records to store in my database.  How is that handled inside a VBA process?

Does anyone have examples of VBA code inside Access that will give me a straw-man to work with.

Thanks in advance....

Wayne

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-09-07 09:31:26
The only example currently on the forum is found in: Running an sp_report in Access using VBA  

  Top 
  Young Rembrandts 
  fd6e0_2_new_logo_3_colorsmall.jpg
 Group: Members 
 Posts: 10 
 Joined: 2007-04-15 
 Profile
 Posted : 2007-09-08 04:56:46

Thanks for the response.  I am adding QB customer records from my Access  customer database, one at a time.   The example you pointed to me did no entirely fit the bill.

 

First, after reviewing article about “Setup QODBC to work with ADO”, it appears that all interaction with QB from Access is done only through a SQL statement rather than ADO database methods.  Is that true?

 

Second, assuming I can develop a construct to do the QB record add in a VBA routine, how do I then invoke the stored procedure “SP_Lastinsertid” so that it returns the record set to some variable that I can access in my VBA routine.  In other words, where does the “LastInsertID” row go when I invoke it in a VBA routine?

 

Thanks in advance.

 

Wayne

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-09-08 07:37:42

No, the use of ADO is done from anywhere, from Visual Basic, VBScript, Foxpro or even MS Access. Here are some more examples: Can I get some examples of how to use QODBC via Visual Basic? 

Have a look at: Inserting invoice lines built from external data using MS Access and "SP_LASTINSERTID customer" returns no values in VB6 program also.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to