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!

want to use opendatabase for sql server linked tables

Status
Not open for further replies.

diamondsc

Programmer
Jun 28, 2001
44
US
I have an Access 2000 app with linked data tables from an Access 2000 database. I use the following to open this database:

Dim dbs As Database
Set dbs = OpenDatabase("\\billingsvr\mbdata\mbData.mdb")

Billingsvr is the Windows 2000 Server and mbdata is the folder where the database resides. We are going to upgrade to SQL Server 2000. The name of the sql server instance will be something like sqlbillingsvr and the database name will be mbData.

How would the OpenDatabase line read for this?
 
I doubt you can open an SQL database/table using OpenDatabase. Depending on what you plan on doing with the data, you should consider using ADO which is much more appropriate than DAO.

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top