Tim,
Yes, you can do this, both in a macro or in a VBA procedure. In both
cases, the approach is similar, and you will need to refer to the value
of the Primary Key field in your current record. In a macro, use the
OpenReport action, and then in the Where Condition argument of the macro
design, put the equivalent of this...
[YourID]=[Forms]![NameOfYourForm]![YourID]
In code, you would do like this...
DoCmd.OpenReport "ReportName", , , "[ID]=" & Me.ID
Obviously, substitute the actual names of your report, form, and id
field. I imagine you would put this macro or code on the Click event of
a command button on your form?
--
Steve Schapel, Microsoft Access MVP
I would like the users of my dbase to print the record they are viewing on a
report.
Is there a way to do this either through macro or code?