Printing a single Record in a Report

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

Guest

I want to place a button on my form so that it will just print a report. I
only want it to print the current record. Not all of them. How do I go about
this?

Thanks in advance.
Travis
 
The following code should do the trick


me.Refresh ' write data to disk so
' reprot can see any
'changes

docmd.openreport "myreport",,,"id = " & me!id

The above will print the current record you are viewing...
 

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

Back
Top