report forms-using same form for different queries

J

Jennifer

I'm printing a report from a query, and need a report
with the same format and appearance from a different
query. How do I do this without having to make the
report from scratch twice?
thank you
 
J

Jim/Chris

I got this from Fred

You can also use just one report for both queries, by
simply deleting the recordsource and leaving it blank.
Then code the Report Open event to set it's recordsource
there, according to a user selected value on a form:
If forms!FormName!OptionGroupName = 1 Then
Me.RecordSource = "Table1"
Else
Me.RecordSource = "Table2"
End If
The form would have to be open when the report is run.

Jim
 

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

Top