R
ronaldfouche
I have a form from wich I want to print the data of a single record on a
report. I have the code for the button to print the report, but it prints all
the records from a table on seperate pages instead of just the single page
with the data I am looking at.
Code is:
Private Sub Print_Requisition_Click()
On Error GoTo Err_Print_Requisition_Click
Me.Dirty = False '
stDocName = "invoices"
DoCmd.OpenReport "invoices", , , "no" & Me.No
Exit_Print_Requisition_Click:
Exit Sub
Err_Print_Requisition_Click:
MsgBox Err.Description
Resume Exit_Print_Requisition_Click
End Sub
Thank you in advance
Ronald
report. I have the code for the button to print the report, but it prints all
the records from a table on seperate pages instead of just the single page
with the data I am looking at.
Code is:
Private Sub Print_Requisition_Click()
On Error GoTo Err_Print_Requisition_Click
Me.Dirty = False '
stDocName = "invoices"
DoCmd.OpenReport "invoices", , , "no" & Me.No
Exit_Print_Requisition_Click:
Exit Sub
Err_Print_Requisition_Click:
MsgBox Err.Description
Resume Exit_Print_Requisition_Click
End Sub
Thank you in advance
Ronald