current subform

ppoole16

Registered User.
Local time
Today, 11:21
Joined
Aug 21, 2003
Messages
57
How do I get a report to display only the current form and subform displayed on the screen?
 
ppoole,

Base your report on a query. The query can join the two tables
based on your key field, for example CustomerNumber. In the query's
Criteria for the CustomerNumber put:

=Forms![YourMainForm]![CustomerNumber]

which is the name of the control on your form.

Then make a command button with an OnClick event of:

DoCmd.OpenReport "YourReport", acPreview

Wayne
 

Users who are viewing this thread

Back
Top Bottom