Information générale
Catégorie:
Contrôles ActiveX
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement