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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ODBC Connection in Excel VBA

Status
Not open for further replies.

jonsan

Technical User
Jan 25, 2005
17
US
I need to open an ODBC connection to a database. I have the connection string (I used the record macro feature to find it), but I don't know what object or syntax to use. I have an update query written in SQL that I need to execute on the databse from the macro. Can anyone give me a code example or let me know what object to use?

Thanks!

J
 
Search your local drives for files named dao*.chm;ado*.chm

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I did not find any files with those names. I know how to use a ADODB object to create and open a connection to an Access database, I am just not sure what object to use to connect to a different type of database. Like I said, I have the connection string (which specifies ODBC), and the SQL statement already written.

Thanks!

J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top