If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Printing Porblem
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 |
Thread Tools | |
Display Modes | |
|
|