Link to home
Start Free TrialLog in
Avatar of peispud
peispudFlag for Canada

asked on

access 2010 form DoCmd.OpenReport with argument

Hi.

I am using Access 2010

I have a form and a report.

From the form,  I can use the following code and it works fine.

'DoCmd.OpenReport "Report", acViewPreview, , "[Packing Slip Ref Num]= '" & Me.[Packing Slip Ref Num] & "'"


I am having trouble in figuring out how to pass a string value to the "Report Open Event"  so that I can affect the Report Header text.

I appreciate any help.
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peispud

ASKER

Thank you very much