|
-
Mar 31st, 2000, 02:01 AM
#1
Thread Starter
Member
Does anyone know why when you execute a command object, the recordset it returns is forward-only?
Private Function GetSomeRST(strConnection As String) As ADODB.Recordset
Dim cmd As ADODB.Command
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
Set cmd = New ADODB.Command
rst.CursorType = adOpenStatic
cmd.ActiveConnection = strConnection
cmd.CommandText = "some_stored_proc"
cmd.CommandType = adCmdStoredProc
Set rst = cmd.Execute
Set GetSomeRST = rst
End Function
Thanks.
Matt
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
|