R
RandyH
TIA....
I have a working form with sub-form. I would like to print a selected record
from the sub form. I have made the report, and added a button to the sub
form. What command(s) should I use to get just the selected record to print?
As it's set up now, I get a report with all records. Here is the code I have
behind the button.
Private Sub Print_workorder_Record_Click()
On Error GoTo Err_Print_workorder_Record_Click
stDocName = "Workorder Details Report"
DoCmd.OpenReport stDocName, acPreview
Exit_Print_workorder_Record_Click:
Exit Sub
Err_Print_workorder_Record_Click:
MsgBox Err.Description
Resume Exit_Print_workorder_Record_Click
End Sub
I have a working form with sub-form. I would like to print a selected record
from the sub form. I have made the report, and added a button to the sub
form. What command(s) should I use to get just the selected record to print?
As it's set up now, I get a report with all records. Here is the code I have
behind the button.
Private Sub Print_workorder_Record_Click()
On Error GoTo Err_Print_workorder_Record_Click
stDocName = "Workorder Details Report"
DoCmd.OpenReport stDocName, acPreview
Exit_Print_workorder_Record_Click:
Exit Sub
Err_Print_workorder_Record_Click:
MsgBox Err.Description
Resume Exit_Print_workorder_Record_Click
End Sub