I have a the following stored procedure:
Alter Procedure GetResults @Get_Id INT
As
SELECT * FROM TBLSAMPLE
WHERE ID =@Get_Id
I am calling the stored procedure using the following:
DoCmd.OpenStoredProcedure "GetResults", acViewNormal
It is possible to call the stored procedure using parameters as I need to send a parameter for @Get_Id
I know that I can use this code
strSend = "exec GetResults @GET_ID=" + "1"
CurrentProject.Connection.Execute strSend
But I need the result back in a grid format. I would appreciate any help offered
Alter Procedure GetResults @Get_Id INT
As
SELECT * FROM TBLSAMPLE
WHERE ID =@Get_Id
I am calling the stored procedure using the following:
DoCmd.OpenStoredProcedure "GetResults", acViewNormal
It is possible to call the stored procedure using parameters as I need to send a parameter for @Get_Id
I know that I can use this code
strSend = "exec GetResults @GET_ID=" + "1"
CurrentProject.Connection.Execute strSend
But I need the result back in a grid format. I would appreciate any help offered