Procedure stack

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a report that will be opened with the DoCmd.Openreport command.
However the form in which this command is stated can have more then one
instances. The behavior of the report is depending on the calling form. How
can I let the report know which instance of the form called it?
E.g. opening a form one can use the OpenArgs property.
 
Karl:

Use a SQL WHERE in the DoCmd.Open report call, rather than defined paramters
(e.g. Form!MyForm!MyControl) in the report's underlying query. That way,
you can use the Me!ControlName syntax for the parameters. e.g.
"[CustomerID] = " & Me!txtCustomerID.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

access report 0
Erratic Report Field Format 6
A2007 Report not evaluating Where Condition 3
multiple openargs 1
OPEN ARGS Trouble 2
Make Command Button print Specific Report 6
OpenArgs 4
newbie Report question 1

Back
Top