|
-
Jun 4th, 2000, 07:44 PM
#1
Thread Starter
New Member
When I access a table in a Sybase Database through a recordset, an error occurs and return to me "error status E-Fail" and lose the connection.
Public AdoConnection As ADODB.Connection
Dim Rs As ADODB.Recordset
Dim SQlExec as string
Set AdoConnection = New ADODB.Connection
AdoConnection.ConnectionString = "PROVIDER=MSDASQL;DSN=Infoteam;UID=;PWD=;"
AdoConnection.CursorLocation = adUseClient
AdoConnection.Open
Set Rs = New ADODB.Recordset
SQlExec = "SELECT * FROM adresse"
Rs.Open SQlExec, AdoConnection, adOpenStatic, adLockReadOnly, adCmdText
In fact it work for few tables and the error occurs in some tables.
Could you help me
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|