Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime parameter passing to Access project report

Status
Not open for further replies.

VictoriaWass

Programmer
Jul 14, 2001
12
0
0
GB
I have an Access report whose source is an SQL server stored procedure. This stored procedure has a parameter to which a value must be assigned. Rather than have the automatic message box appear prompting for this value when the report is run, I would like the report to automatically pick up the value from a text box on the form when it runs. Surely this should be obvious but I can't see it, this is all I've managed so far and it is not working...

DoCmd.OpenReport "rpt_confirm", acViewPreview, , RecordSource = "dbo.fhsp_order_confirmation @Identifier = " & txt_ident

... where @Identifier is the parameter in the stored procedure and txt_ident is the text box I want it to take the value from.

Any help would be greatly appreciated.... Vicky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top