I have a form in which I put a Print Record button. I assumed that when the user selected one record using the form and press this button that just that one record would print out on the form, not every record in the database. Unfortunately, right now EVERY record prints out. How do I get it to do just the one record the user has selected? Here's the current code for the button:
Private Sub PrintRecord_Click()
On Error GoTo Err_PrintRecord_Click
DoCmd.PrintOut
Exit_PrintRecord_Click:
Exit Sub
Err_PrintRecord_Click:
MsgBox Err.Description
Resume Exit_PrintRecord_Click