Hello,
I have a application that I have successfully converted to use data on a sql server. I have no linked tables or DSN's for this application. I built the system using access 2003.
My problem is I have alot of access 2000 boxes that it needs to run on and it errors on the connection string that I am making to the sql server. below is the code that IU use to make my connection.
Public Function Init_Globals()
Set GBL_cn = New ADODB.Connection
With GBL_cn
.Provider = "Microsoft.Access.OLEDB.10.0"
.Properties("Data Provider").Value = "SQLOLEDB"
.Properties("Data Source").Value = "xxxx-trustsql"
.Properties("User ID").Value = "username"
.Properties("Password").Value = "password"
.Properties("Initial Catalog").Value = "timedemo"
.Open
End With
EMP_search = ""
End Function
The following line is where it errors:
.Provider = "Microsoft.Access.OLEDB.10.0"
I have researched this and have found some things but none that really make it clear for me, partly because most references seem to be talking about linked tables thru a DSN, which I do not have.
Any help would appreciated on getting this working on access 2000.
Thanks,
Dave
I have a application that I have successfully converted to use data on a sql server. I have no linked tables or DSN's for this application. I built the system using access 2003.
My problem is I have alot of access 2000 boxes that it needs to run on and it errors on the connection string that I am making to the sql server. below is the code that IU use to make my connection.
Public Function Init_Globals()
Set GBL_cn = New ADODB.Connection
With GBL_cn
.Provider = "Microsoft.Access.OLEDB.10.0"
.Properties("Data Provider").Value = "SQLOLEDB"
.Properties("Data Source").Value = "xxxx-trustsql"
.Properties("User ID").Value = "username"
.Properties("Password").Value = "password"
.Properties("Initial Catalog").Value = "timedemo"
.Open
End With
EMP_search = ""
End Function
The following line is where it errors:
.Provider = "Microsoft.Access.OLEDB.10.0"
I have researched this and have found some things but none that really make it clear for me, partly because most references seem to be talking about linked tables thru a DSN, which I do not have.
Any help would appreciated on getting this working on access 2000.
Thanks,
Dave