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!

Writing to an SQL File in ACCPAC Macro

Status
Not open for further replies.

sherlick

Technical User
Jan 3, 2007
13
US
Hi All;

I have written a macro to read data from ACCPAC and write it out to a text file. I would like to change this macro to write to an SQL table. I have not found a way to connect to an SQL database within an ACCPAC macro.

Is this possible? Do I need to add in a reference to the ACCPAC macro? Any guidance/sample code would be appreciated.

Thanks

Stephen
 
Use ADO or DAO to connect to SQL, you cannot do it otherwise.
 
Hi Ettienne;

Thank you for the quick response. Do you know the dll I need to add to the Macro so I can get the connection object working?

Thanks

Stephen
 
You don't add DLL's, you add a Reference to the project: Microsoft Activex Data Objects 2.5 Library (or higher).

Jay Converse
IT Director
Systemlink, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top