Access tables were migrated to SQL via the upsizing wizard, connecting to tables via an ODBC connection.
Need to know how to change the connect string to now connect to the ODBC tables.
here's the code when the tables were linked to MS access:
'Option Explicit
Sub localnet()
Set ws = DBEngine(0)
Set db = ws.OpenDatabase("c:\work\satp\usersinfo.mdb")
End Sub
--------------------------------------------------------
Sub servernet()
Set ws = DBEngine(0)
Set db = ws.OpenDatabase("\\hpcsrv\access\satp1.mdb")
End Sub
---------------------------------------------------------
Sub curDB()
'Set db = CurrentDb
Set ws = DBEngine(0)
Set db = ws.OpenDatabase("\\hpcsrv\access\satp1.mdb")
End Sub
Need to know how to change the connect string to now connect to the ODBC tables.
here's the code when the tables were linked to MS access:
'Option Explicit
Sub localnet()
Set ws = DBEngine(0)
Set db = ws.OpenDatabase("c:\work\satp\usersinfo.mdb")
End Sub
--------------------------------------------------------
Sub servernet()
Set ws = DBEngine(0)
Set db = ws.OpenDatabase("\\hpcsrv\access\satp1.mdb")
End Sub
---------------------------------------------------------
Sub curDB()
'Set db = CurrentDb
Set ws = DBEngine(0)
Set db = ws.OpenDatabase("\\hpcsrv\access\satp1.mdb")
End Sub