Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / May 2008

Tip: Looking for answers? Try searching our database.

Determine which form to be on top of the other

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michalis J. - 27 May 2008 21:41 GMT
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?
Dirk Goldgar - 27 May 2008 22:03 GMT
> 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.

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

Michalis J. - 28 May 2008 06:07 GMT
Thanks Dirk. I will try that and reply back.

> > If we have two forms and one report opened at the same time is there a way
> > to
[quoted text clipped - 6 lines]
> particular order, I imagine you'd have to select each one in turn, from
> bottom to top.
Michalis J. - 28 May 2008 06:58 GMT
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.

> Thanks Dirk. I will try that and reply back.
>
[quoted text clipped - 8 lines]
> > particular order, I imagine you'd have to select each one in turn, from
> > bottom to top.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.