M
Max Moor
Hi All,
I have an Access 2002 application where I may have multiple forms and
reports open at one time. They are all maximized. I have a "LeftNav" form
that is always open and always visible that does open form/report window
management.
The user clicks the name of an open form or report in a list on the
LeftNav, and some VBA code brings that window to the top. For forms and
regular reports, I call:
DoCmd.SelectObject acForm, strWindowName, False
Some of my forms and reports are multiple copies of the same form or
report opened with different data filters. I open these via a collection,
so I can open the various copies with the "New' keyword and manage them
individually.
Unfortunately, these items are only accessible via their underlying
form or report object. I can't refer to them via their form or repport
name, because there may be two or three open by the same name (their
caption is unique, and used as the collection's key).
For forms, I can call the form object's SetFocus method, and the
window pops to the top. Report objects don't have a SetFocus method,
though. How can I get an open, but buried, report preview window to pop to
the top?
Regards,
Max
I have an Access 2002 application where I may have multiple forms and
reports open at one time. They are all maximized. I have a "LeftNav" form
that is always open and always visible that does open form/report window
management.
The user clicks the name of an open form or report in a list on the
LeftNav, and some VBA code brings that window to the top. For forms and
regular reports, I call:
DoCmd.SelectObject acForm, strWindowName, False
Some of my forms and reports are multiple copies of the same form or
report opened with different data filters. I open these via a collection,
so I can open the various copies with the "New' keyword and manage them
individually.
Unfortunately, these items are only accessible via their underlying
form or report object. I can't refer to them via their form or repport
name, because there may be two or three open by the same name (their
caption is unique, and used as the collection's key).
For forms, I can call the form object's SetFocus method, and the
window pops to the top. Report objects don't have a SetFocus method,
though. How can I get an open, but buried, report preview window to pop to
the top?
Regards,
Max