General information
Category:
ActiveX controls
Title:
RDO not working under NT4...help
Hi Friends,
The snippet below works fine under win95 but not under NT4 workstation. Both are been configured the same and at the execution I have this error message at the line where I maked with ****:
"ActiveX component can't create object"
Can anyone help me out please?
Dim ConnectionRDOAdminRights As New rdoConnection 'creatable rdoConnection
Dim QueryRDOAdminRights As New rdoQuery 'creatable rdoQuery
Dim ResultsetRDOAdminRightsA As rdoResultset 'pointer to rdoResultset
Dim ConnectionStrRDO As String 'hold connection info
ConnectionStrRDO = "driver={SQL Server};server=999.999.999.999;database=mydatabase;uid=myuid;pwd=mylogin"
****ConnectionRDOAdminRights.Connect = ConnectionStrRDO****
ConnectionRDOAdminRights.CursorDriver = rdUseClientBatch
ConnectionRDOAdminRights.EstablishConnection Prompt:=rdDriverNoPrompt
Set QueryRDOAdminRights.ActiveConnection = ConnectionRDOAdminRights
QueryRDOAdminRights.SQL = "Select * From T_Administrators where T_Administrators.AdministratorsID = '" & LoginName & "'"
Set ResultsetRDOAdminRights = QueryRDOAdminRights.OpenResultset(Type:=rdOpenKeyset, LockType:=rdConcurReadOnly)
Thanks in advance
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only