Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect automatically using ADODB connection

Status
Not open for further replies.

winstz

MIS
Oct 20, 2008
44
ID
Hi all,

I made several programs using Macro Excel (VBA) and Crystal Report to print out reports that accpac can not handle.

First, I login to ACCPAC using my user id and password.

Then i attach a report that i create by using crystal report to accpac browser.
If i open the report then it will show the result instantly (without login to database because the crystal report can use the user id, password, and database that i have entered the first time in accpac)

Then i attach a Macro Excel (VBA) to accpac browser.
If i open the Macro Excel (VBA) then the macro will ask for user id, password and database that i want to connect (using adodb connection).

Does anyone have trick how the Macro Excel (VBA) can use the user id, password, and database that i have entered the first time in accpac (like Crystal report) ??? so that i don't have to enter it again.

Need assistance please.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top