Sql Back end connection error
Hi All;
I have just tried to run my application with SQl Server back end on a different machine with a different network, now I'm getting the error attached .I'm not too sure what it is I asked the IT Manager he assured me that he installed the correct ODBC drivers. Could it be the code below not correctly done:
Option Compare Database
Option Explicit
Function ShowConnectInfo()
Dim dbs As DAO.Database
Dim tdf As DAO.TableDef
Set dbs = CurrentDb()
For Each tdf In dbs.TableDefs
If (tdf.Connect <> vbNullString) Then
tdf.Connect = "ODBC;DRIVER={sql server};DATABASE=MDCAccoun ting;SERVE R=USER\SQL EXPRESS;Tr usted_Conn ection=Yes ;"
Debug.Print tdf.Connect
tdf.RefreshLink
End If
Next tdf
Set tdf = Nothing
Set dbs = Nothing
End Function
Regards
Chris
Sql-Server-error.docx
I have just tried to run my application with SQl Server back end on a different machine with a different network, now I'm getting the error attached .I'm not too sure what it is I asked the IT Manager he assured me that he installed the correct ODBC drivers. Could it be the code below not correctly done:
Option Compare Database
Option Explicit
Function ShowConnectInfo()
Dim dbs As DAO.Database
Dim tdf As DAO.TableDef
Set dbs = CurrentDb()
For Each tdf In dbs.TableDefs
If (tdf.Connect <> vbNullString) Then
tdf.Connect = "ODBC;DRIVER={sql server};DATABASE=MDCAccoun
Debug.Print tdf.Connect
tdf.RefreshLink
End If
Next tdf
Set tdf = Nothing
Set dbs = Nothing
End Function
Regards
Chris
Sql-Server-error.docx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.