L
Leif
I'm testing an Access 2K application currently running on
Win2K under Office 2003/Access 2003/XP.
I'm getting a "Class not Registered" error when I try to
execute code that has Currentproject.Connection. For
example:
Dim cnn As ADODB.Connection
On Error GoTo Err_cmdOK_Click
' Try to reset the user's password
' *** THE FOLLOWING LINE GETS THE ERROR ***
Set cnn = CurrentProject.Connection
cnn.Execute "ALTER USER [" & CurrentUser & "]
PASSWORD [" & txtNewPassword & _
"] [" & txtCurrentPassword & "]"
Set cnn = Nothing
DoCmd.Close
Exit Sub
Err_cmdOK_Click:
MsgBox Err.Description
Resume Exit_cmdOK_Click
End Sub
I've checked under References, and all the references are
the same as on A2K, except a change from Access Object
Library 9.0 to 11.0 and Microsoft Office 9.0 Object
library to 11.0.
Thanks,
Leif
Win2K under Office 2003/Access 2003/XP.
I'm getting a "Class not Registered" error when I try to
execute code that has Currentproject.Connection. For
example:
Dim cnn As ADODB.Connection
On Error GoTo Err_cmdOK_Click
' Try to reset the user's password
' *** THE FOLLOWING LINE GETS THE ERROR ***
Set cnn = CurrentProject.Connection
cnn.Execute "ALTER USER [" & CurrentUser & "]
PASSWORD [" & txtNewPassword & _
"] [" & txtCurrentPassword & "]"
Set cnn = Nothing
DoCmd.Close
Exit Sub
Err_cmdOK_Click:
MsgBox Err.Description
Resume Exit_cmdOK_Click
End Sub
I've checked under References, and all the references are
the same as on A2K, except a change from Access Object
Library 9.0 to 11.0 and Microsoft Office 9.0 Object
library to 11.0.
Thanks,
Leif