i had modify my connection string to ODBC DSN. But error ocur when i run it, it shows that "object doesn't support this property ot method." When i debug, it points to the .provider = "MSDASQL"
Below is what i had change in the module:
change:
Set cnConn = Application.CurrentProject.Connection
become:
Set cnConn = New ADODB.Connection
With cnConn
.Provider = "MSDASQL"
.ConnectionString = "DSN=sally;"
.Open
End With
Below is what i had change in the module:
change:
Set cnConn = Application.CurrentProject.Connection
become:
Set cnConn = New ADODB.Connection
With cnConn
.Provider = "MSDASQL"
.ConnectionString = "DSN=sally;"
.Open
End With