Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RDO not working under NT4...help
Message
De
12/06/1998 13:09:45
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
RDO not working under NT4...help
Divers
Thread ID:
00107672
Message ID:
00107672
Vues:
73
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
Fil
Voir

Click here to load this message in the networking platform