Hi there,
I'm pulling my yhair out over this - have been scanning posts all morning but have got nowhere.
I have a form, with a click button which runs a stored procedure to screen and a combo box which is used to provide a parameter to the stored procedure.
I've this code:
Dim stDocName As String
stDocName = "spPartner_Spend_Forecast"
DoCmd.OpenStoredProcedure stDocName, acViewNormal, acEdit
which runs the stored procedure but I can't pass the parameter to it.
In the SP the parameter is @LC, I want to make LC equal to the selection from combo1.
Ive tried adding @LC = forms!myreport!combo1 to the input parameter of the form, but this tries to filter the form by the combo box.
In an mdb I would put forms!myreport!combo1 in the query as a criteria, but this obviously doesn't work with an adp.
Can anyone help please?
I'm pulling my yhair out over this - have been scanning posts all morning but have got nowhere.
I have a form, with a click button which runs a stored procedure to screen and a combo box which is used to provide a parameter to the stored procedure.
I've this code:
Dim stDocName As String
stDocName = "spPartner_Spend_Forecast"
DoCmd.OpenStoredProcedure stDocName, acViewNormal, acEdit
which runs the stored procedure but I can't pass the parameter to it.
In the SP the parameter is @LC, I want to make LC equal to the selection from combo1.
Ive tried adding @LC = forms!myreport!combo1 to the input parameter of the form, but this tries to filter the form by the combo box.
In an mdb I would put forms!myreport!combo1 in the query as a criteria, but this obviously doesn't work with an adp.
Can anyone help please?