Sep 13, 2004 #1 simma Programmer Joined Sep 11, 2001 Messages 398 Location US Hello Can the resultset from sp with parameter input from form can be displayed in immediate window? Thanks
Hello Can the resultset from sp with parameter input from form can be displayed in immediate window? Thanks
Sep 16, 2004 #2 wokkie Programmer Joined May 9, 2003 Messages 52 Location GB 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? Upvote 0 Downvote
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?
Sep 16, 2004 #3 cmmrfrds Programmer Joined Feb 13, 2000 Messages 4,690 Location US 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. Upvote 0 Downvote
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.
Sep 17, 2004 Thread starter #4 simma Programmer Joined Sep 11, 2001 Messages 398 Location US Thanks Guys!! Upvote 0 Downvote