Printing individual records

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

Guest

I would like to know if there is a way to print an individual record or use
the ID key…. Perhaps a command button that asks what record or id key to
print and then print only that report or form would be sent to the printer… I
can print now but all my records print every time… that’s a lot of paper!!
thanks everyone!!
 
Simply use the "where" clause to restrict he form to the current record

The code behind a button would look like:


me.Refresh
docmd.OpenReport "myReprotName",acViewPreview,,"id = " & me!id

The above assumes you have a primary key of "id" in the table.

The above button can thus be placed on a form..and it will print ONLY the
report with the one record....
 

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