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
|
|
VBA Examples |
Author |
Message |
|
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 |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-09-07 09:31:26 |
|
|
|
|
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
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-09-08 07:37:42 |
|
|
|
|