Printing Porblem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top