L
Leo
I have a master form that includes a sub form. After designing this I stored
it as report. I have a print command (Command29) in the master form with
onclick event written as follows:
Private Sub Command29_Click()
On Error GoTo Err_Command29_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rptPDMONTHLYNOTES"
stLinkCriteria = "[Account_Number]=" & Me![Account_Number]
DoCmd.OpenReport stDocName, , , stLinkCriteria, acNormal
Exit_Command29_Click:
Exit Sub
Err_Command29_Click:
MsgBox Err.Description
Resume Exit_Command29_Click
End Sub
When I click it prints the Master form in a single page and the subform in a
separte page. On the masterform properties it is selected as singleform.
What am I doing wrong?
Please help.
Thanking you in advance,
Sincerely
Leo
it as report. I have a print command (Command29) in the master form with
onclick event written as follows:
Private Sub Command29_Click()
On Error GoTo Err_Command29_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rptPDMONTHLYNOTES"
stLinkCriteria = "[Account_Number]=" & Me![Account_Number]
DoCmd.OpenReport stDocName, , , stLinkCriteria, acNormal
Exit_Command29_Click:
Exit Sub
Err_Command29_Click:
MsgBox Err.Description
Resume Exit_Command29_Click
End Sub
When I click it prints the Master form in a single page and the subform in a
separte page. On the masterform properties it is selected as singleform.
What am I doing wrong?
Please help.
Thanking you in advance,
Sincerely
Leo