By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,327 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,327 IT Pros & Developers. It's quick & easy.

How to maintain maximized report when filtering by dialog box

P: 23
Access 2003/ XP

Hi,

I have a report that has its On Open event set to open a form in the style of a dialog box

[code]
Private Sub Report_Open(Cancel As Integer)

DoCmd.OpenForm FormName:="A_frmAvpBrTc", _
WindowMode:=acIcon

End Sub
[code]

The dialog box opens underneath the report. Also, the report shrinks when I click in dialog box. The dialog box is used to dynamically filter the report and works fine.

How can I get the report to open with the Dialog ontop of it? Also, how do I keep the report maximized while making selections in the dialog box?
Aug 19 '08 #1
Share this Question
Share on Google+
2 Replies


puppydogbuddy
Expert 100+
P: 1,923
Access 2003/ XP

Hi,

I have a report that has its On Open event set to open a form in the style of a dialog box

[code]
Private Sub Report_Open(Cancel As Integer)

DoCmd.OpenForm FormName:="A_frmAvpBrTc", _
WindowMode:=acIcon

End Sub
[code]

The dialog box opens underneath the report. Also, the report shrinks when I click in dialog box. The dialog box is used to dynamically filter the report and works fine.

How can I get the report to open with the Dialog ontop of it? Also, how do I keep the report maximized while making selections in the dialog box?

1. Set popup and modal properties of your dialog form to yes. (if this impacts your filter, set popup = yes, set modal =no and eliminate acDialog mode in #3 below)
2. In the report's Open event code, place the following code after the open form command:
DoCmd.Maximize
3. change your open form command to open in dialog mode:
DoCmd.OpenForm "Your Form", acNormal, , , , acDialog
Aug 21 '08 #2

P: 23
Thanks, that worked perfectly.
Aug 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.