Is there a way to run a sp after passing it parameters and having it display the results.
I am using an .ADP and MS SQL2000
I can do this to run a sp with parmeters but not display the results:
CurrentProject.Connection.Execute ("spDataValidation_Scrap_GoodVsScrapPerHr @BeginDate=" Me.begindate)
And I can do this to run a sp and display the results, but not pass it any parameters:
DoCmd.OpenStoredProcedure "spDataValidation_Scrap_GoodVsScrapPerHr"
Is there an "in-between" that allows me to do this in "one statement call." I say that because I know I can create the sql string in code and have the variables in it then set a form to that and open the form, but all I want to do is have the sp run and display the results (in as litttle code as possible)
I am using an .ADP and MS SQL2000
I can do this to run a sp with parmeters but not display the results:
CurrentProject.Connection.Execute ("spDataValidation_Scrap_GoodVsScrapPerHr @BeginDate=" Me.begindate)
And I can do this to run a sp and display the results, but not pass it any parameters:
DoCmd.OpenStoredProcedure "spDataValidation_Scrap_GoodVsScrapPerHr"
Is there an "in-between" that allows me to do this in "one statement call." I say that because I know I can create the sql string in code and have the variables in it then set a form to that and open the form, but all I want to do is have the sp run and display the results (in as litttle code as possible)