Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Executing a query in Access VBA

Author  Topic 

Barbara
Starting Member

4 Posts

Posted - 2012-07-06 : 20:25:39
Hi,

I have many queries in my VBA code where I'm using
Dim db as Database
Set db = CurrentDB

Of course, that no longer works since my tables are now in SQL server.
Should I be using ADODB.connect with an ODBC connect string or is there another way to modify my code?

Thanks!
Barbara

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-07-06 : 21:20:33
you can use ADODB

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -