B
BruceM
When I click a button on my main form to preview a report, the report opens
on top of the form. However, another command button opens a form for
selecting report parameters (a different report than the first button I
mentioned). This report opens behind the main form. There seems to be
nothing I can do to change that other than hiding the main form when I open
the report, and restoring it when I close the report. Here are some things
I have tried:
In the Click event for the button on the parameter form that opens the
report, I have added:
DoCmd.SelectObject acReport, "ReportName"
I have also tried (same Click event):
Reports("ReportName").SetFocus
When I open the report directly from the main form (without using the
parameter form), it opens on top.
I have had to resort to hiding the main form when I open the report by way
of the parameter form, and unhiding (and restoring) the main form when I
close the report.
In all cases, I am opening the report in Preview mode.
I am using Access 2003.
Any ideas as to why this is happening this way? I would like to have a
report property that is the equivalent of "Open on top of everything else,
no matter what".
on top of the form. However, another command button opens a form for
selecting report parameters (a different report than the first button I
mentioned). This report opens behind the main form. There seems to be
nothing I can do to change that other than hiding the main form when I open
the report, and restoring it when I close the report. Here are some things
I have tried:
In the Click event for the button on the parameter form that opens the
report, I have added:
DoCmd.SelectObject acReport, "ReportName"
I have also tried (same Click event):
Reports("ReportName").SetFocus
When I open the report directly from the main form (without using the
parameter form), it opens on top.
I have had to resort to hiding the main form when I open the report by way
of the parameter form, and unhiding (and restoring) the main form when I
close the report.
In all cases, I am opening the report in Preview mode.
I am using Access 2003.
Any ideas as to why this is happening this way? I would like to have a
report property that is the equivalent of "Open on top of everything else,
no matter what".