P
Peter Hallett
I have a form running a VBA Do loop that assembles reports. As each report
is created, it is necessary to preview it, to determine whether or not it is
to be printed. This means pausing the Do loop in order to take the necessary
action.
One way of doing this is to open the report in dialogue mode and a second is
to open it from an intermediate form which is itself opened in dialogue mode.
The latter is the more practical because the intermediate form can carry a
pair of command buttons marked ‘Accept’ and ‘Skip’, for example, but both
methods suffer from the same drawback, with different causes.
Report previews are quite small in their default format and therefore often
difficult to read. They generally need to be maximised and, in some cases,
zoomed as well. However, if a report is opened in dialogue mode, its
minimise and maximise buttons are disabled whereas, if it is opened from a
form which was itself opened in dialogue mode then, even though the maximise
and minimise buttons on the report are then enabled, the calling form retains
the focus, which cannot therefore be shifted to the report in order to
operate the buttons! It is not really a Catch 22 situation, but you know
what I mean. Is there a solution that I have failed to spot, or is there
another way of tackling the job?
is created, it is necessary to preview it, to determine whether or not it is
to be printed. This means pausing the Do loop in order to take the necessary
action.
One way of doing this is to open the report in dialogue mode and a second is
to open it from an intermediate form which is itself opened in dialogue mode.
The latter is the more practical because the intermediate form can carry a
pair of command buttons marked ‘Accept’ and ‘Skip’, for example, but both
methods suffer from the same drawback, with different causes.
Report previews are quite small in their default format and therefore often
difficult to read. They generally need to be maximised and, in some cases,
zoomed as well. However, if a report is opened in dialogue mode, its
minimise and maximise buttons are disabled whereas, if it is opened from a
form which was itself opened in dialogue mode then, even though the maximise
and minimise buttons on the report are then enabled, the calling form retains
the focus, which cannot therefore be shifted to the report in order to
operate the buttons! It is not really a Catch 22 situation, but you know
what I mean. Is there a solution that I have failed to spot, or is there
another way of tackling the job?