pass open args to report to print ?

qwertyjjj

Registered User.
Local time
Today, 15:14
Joined
Aug 8, 2006
Messages
262
I have a form where a user can press a button, which then prints a report.
The report is basically the same as the form but laid out neater and in a format that fits it to 1 A4 page.
For one of these reports, I would like it to run a different query depending upon which form is used. I know with the forms you can use an open args property but is there a similar way to pass this to a report and have it print immediately?

If so, what's the best method?

Thanks
 
I looked up openargs in VBA help and it seemed to imply that it only worked when opening a form. However, when I checked the Applies To link at the top, it seemed to say that it applied to both. So, try it the same as you would with a form.

If that doesn't work, you can still do what you want by modifying the query definition of the query that drives the report.
 

Users who are viewing this thread

Back
Top Bottom