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!

display resultset

Status
Not open for further replies.

simma

Programmer
Sep 11, 2001
398
US
Hello
Can the resultset from sp with parameter input from form can be displayed in immediate window?
Thanks
 
you can do something like:

do while not rs.eof
debug.print rs("myField")
rs.movenext
loop

This will show the the selected field from the rs for each row.

Does this help?
 
Return the results from the SP to an ADO recordset.

Something like;
Dim rs as New ADODB.Recordset
Dim cn as New ADODB.Connection
'set up connection.
Set rs = cn.Execute dbo.yoursp

Debug.Print rs.GetString

Look up GetString as it will take arguments to further format the results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top