Print a report with data from one record

Keith

Registered User.
Local time
Today, 10:52
Joined
May 21, 2000
Messages
129
I have a print button on a form that I want to use to print a report with only the data from the current record on the form.
Can anyone help please?
Keith
 
I had the same problem and a guy called Neal posted the code below which I have used very effectively. It should go in the On Click event

DoCmd.OpenReport "yourReportname", acPreview, , "[UniqueIdFieldName]= forms!yourFormName!UniqueIdFieldName]"
 

Users who are viewing this thread

Back
Top Bottom