JaedenRuiner
Registered User.
- Local time
- Yesterday, 21:00
- Joined
- Jun 22, 2005
- Messages
- 154
Okay,
Not to be picky or critical of Access (well maybe a little) but I am having a problem in meeting the customer's desires within the design of my applicaiton. I have several forms which have command buttons that spawn reports in a "Preview" window. Initially I had these reports show as acDialog, which worked, however, they could not "resize" the window that displayed the report. They wanted that ability so I reset my code to open the reports in acWindowNormal. This, however stupidly coded into Access, makes the report window appear behind the current form. Now this would not be a problem, except that you cannot click on the report to bring it to the front/active window.
which would say that no matter what the form is set as the report should be the top active window. Is there any way to achieve this result in Access?
(and I think we know my furthering negative opinion of Access if it cannot)
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
Not to be picky or critical of Access (well maybe a little) but I am having a problem in meeting the customer's desires within the design of my applicaiton. I have several forms which have command buttons that spawn reports in a "Preview" window. Initially I had these reports show as acDialog, which worked, however, they could not "resize" the window that displayed the report. They wanted that ability so I reset my code to open the reports in acWindowNormal. This, however stupidly coded into Access, makes the report window appear behind the current form. Now this would not be a problem, except that you cannot click on the report to bring it to the front/active window.
- None of my Forms are flagged as "Popup", however, they are displayed using DoCmd.ShowForm with the mode acDialog.
- I Cannot have the Reports set as Popup = Yes, as this disables the Zoom, OnePage, MultiPage features of the context menu for the reports.
- I Cannot HIDE the form that spawns the report as I have no idea which of my many forms spawned the report at that time. Different froms pass in different Filter (wherecondition) strings into the report display process so it is highly improbable for me to know which form needs to be "shown" as well as the forms themselves take openarg parameters to know what is going on. perhaps the visible = true/false does not unload the form, but I cannot have the _Load() event triggered a second time.
- Normal Applications would have a simple concept like:
Code:
public sub ShowReport(reportName as string)
DoCmd.SHowReport reportName
Dim rpt as REport
set rpt = Application.Reports(reportName)
rpt.BringToFront
end sub
(and I think we know my furthering negative opinion of Access if it cannot)
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner