there is a stored procedure that I'm trying to tap into. input parameters have already been setup, but querying (using the input parameters) this stored procedure seems to only work in Excel.
I would like to bring that query into Access, but allow the user to change the input parameters.
for example, when viewing the SQL from Excel, the command text is: {call storedproc2 (?,?,?,?,NULL,NULL,NULL,?,?,?)}
the only way that i have found to get this to run in Access is to setup a Pass-Thru Query and hard code the ? to the parameters that I want. for example: {call storedproc2 (123456,'MD',1234,'USA',NULL,NULL,NULL,'BAL',0,0)}
preferably, I'd like those ? to be replaced with values from fields on a form.
so essentially, how can I get the 123456 input parameter to reference a form field rather than having the user edit the query each time?
I've tried using the [Forms]![Frm_Rpt]![Text1], but that did not work.
thanks!
I would like to bring that query into Access, but allow the user to change the input parameters.
for example, when viewing the SQL from Excel, the command text is: {call storedproc2 (?,?,?,?,NULL,NULL,NULL,?,?,?)}
the only way that i have found to get this to run in Access is to setup a Pass-Thru Query and hard code the ? to the parameters that I want. for example: {call storedproc2 (123456,'MD',1234,'USA',NULL,NULL,NULL,'BAL',0,0)}
preferably, I'd like those ? to be replaced with values from fields on a form.
so essentially, how can I get the 123456 input parameter to reference a form field rather than having the user edit the query each time?
I've tried using the [Forms]![Frm_Rpt]![Text1], but that did not work.
thanks!