Sep 13, 2004 #1 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
Hello Can the resultset from sp with parameter input from form can be displayed in immediate window? Thanks
Sep 16, 2004 #2 wokkie Programmer May 9, 2003 52 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 Feb 13, 2000 4,690 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.