sho ryu ken
Registered User.
- Local time
- Today, 21:02
- Joined
- Aug 12, 2005
- Messages
- 15
Hi, I have set up my form so that there is a print button, looking a little like this :
http://www.sdkjewellers.co.uk/printreport.JPG
But how do I get it so the print button prints the report for only the currently selected record?
Code for the print button is simply:
Private Sub Command33_Click()
On Error GoTo Err_Command33_Click
Dim stDocName As String
stDocName = "Labels Customers"
DoCmd.OpenReport stDocName, acNormal
Exit_Command33_Click:
Exit Sub
Err_Command33_Click:
MsgBox Err.Description
Resume Exit_Command33_Click
End Sub
Thanks
http://www.sdkjewellers.co.uk/printreport.JPG
But how do I get it so the print button prints the report for only the currently selected record?
Code for the print button is simply:
Private Sub Command33_Click()
On Error GoTo Err_Command33_Click
Dim stDocName As String
stDocName = "Labels Customers"
DoCmd.OpenReport stDocName, acNormal
Exit_Command33_Click:
Exit Sub
Err_Command33_Click:
MsgBox Err.Description
Resume Exit_Command33_Click
End Sub
Thanks