Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table variable to VB Recordset???

Status
Not open for further replies.

rmahawaii

Programmer
Oct 21, 2002
29
HK
Hello, I am having difficulties with table variables in SQL2000. I have a stored procedures that select * from @tableTmp at the end of the script. Now, suppose I pass this table variable back to vb's recordset. Unfortunately, it said the object or variable is close when I try to use it in VB. Any solutions on how to pass table variable back to VB? thanks in advance.

'strSQL = "EXEC sp_getCustIDChanged"

With rs
.CursorType = adOpenForwardOnly
.CursorLocation = adUseClient
.Open strSQL, conn, adOpenForwardOnly, adLockOptimistic
End With

MsgBox rs.RecordCount '<--------- Error generated here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top