SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Executing a query in Access VBA
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Barbara
Starting Member

USA
4 Posts

Posted - 07/06/2012 :  20:25:39  Show Profile  Reply with Quote
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

India
47040 Posts

Posted - 07/06/2012 :  21:20:33  Show Profile  Reply with Quote
you can use ADODB

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

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000