joebickley
Programmer
HI
I have the following code to connect to a SQL server and just put 1 figure in a box on a form. This works great on my pc but when i turn it into an exe and pass it to my colleague it does not work on his machine. the error is:
Class doesn't support Automation (Error 430)
All the security and things are ok Any ideas??
Office automation specialist
Land Rover UK
I have the following code to connect to a SQL server and just put 1 figure in a box on a form. This works great on my pc but when i turn it into an exe and pass it to my colleague it does not work on his machine. the error is:
Class doesn't support Automation (Error 430)
All the security and things are ok Any ideas??
Code:
sConn = "DRIVER=SQL Server;server=solihullweb;uid=sa;pwd=soldata;database=rcs_data"
Set cnn = New ADODB.Connection
cnn.ConnectionTimeout = 15
cnn.ConnectionString = sConn
cnn.Open
Dim csql As String
Dim rs As New ADODB.Recordset
csql = "select [6figvin] from tblvehicledetails"
rs.Open csql, cnn, adOpenStatic, adLockOptimistic
Text1 = rs![6figvin]
rs.Close
Land Rover UK