A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Printing Porblem



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2009, 11:35 PM posted to microsoft.public.access.queries
leo
external usenet poster
 
Posts: 236
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.