Determine which form to be on top of the other

  • Thread starter Thread starter Michalis J.
  • Start date Start date
M

Michalis J.

If we have two forms and one report opened at the same time is there a way to
set programmatically at any time which form or report will be on top of the
other?
 
Michalis J. said:
If we have two forms and one report opened at the same time is there a way
to
set programmatically at any time which form or report will be on top of
the
other?


I haven't checked this, but I think you can use DoCmd.SelectObject to give
the focus to the object you want. If you want to get them all stacked in a
particular order, I imagine you'd have to select each one in turn, from
bottom to top.
 
Thanks Dirk. I will try that and reply back.

Dirk Goldgar said:
I haven't checked this, but I think you can use DoCmd.SelectObject to give
the focus to the object you want. If you want to get them all stacked in a
particular order, I imagine you'd have to select each one in turn, from
bottom to top.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
I have tried this but the the form or report can not be selected from it's
open or load event when it is opened. In my case I have a base form (for
patient's details and history) from where I can open another form (for the
patient's special examinations) as pop up. From the second form by pressing
a button I get a report preview (for the partigular examination). This last
report to be on top of the other two forms I have to set it's pop-up property
to "yes". This works fine except that in pop-up mode (of the report) I can
not activate any toolbars. I thought that if I find another way to bring the
report on top of the other forms (the second form is a pop-up) without
setting its pop-up property to "yes" I can activate a toolbar in the report
preview.
 
Back
Top