Hello... I need help with the error I encounter when I tried to open a Table in MS SQL Server. I have the following code in VB6.
where adoConn is my Connection to the Ms SQL Server Database.
The error is:
-2147217900 The request for procedure 'TableName' failed because 'TableName' is a table object.
Is there anything wrong with my line of code? Or something else I miss?
Thank you.
Smoi
Code:
Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset rs.open "TableName", adoConn, adOpenKeyset, adLockOptimistic
where adoConn is my Connection to the Ms SQL Server Database.
The error is:
-2147217900 The request for procedure 'TableName' failed because 'TableName' is a table object.
Is there anything wrong with my line of code? Or something else I miss?
Thank you.
Smoi
Comment