Rob Parker said:
It will only be visible until another form gains focus, at which time any
part of the active form which overlaps this form will obscure that portion
of it. You can't force the small force to stay on top except by opening
it in dialog mode - and if you do that, you can't do anything else in you
application until you close it!
There may be some devious method of doing this by API calls to control
window states, but it's not something I've ever seen.
No, making a form stay on top is a simple matter of using the "popup"
setting.
there are 3 types of forms in ms-access
acdialog - ac dialog forms are VERY MUCH different then popup forms, or
model forms
You can ONLY set a form as acdialog via code. (it is NOT possible to open a
form any
other way, nor are their settings).
model - model forms are quite common, but often confused with dialog forms.
While
a both a model and acDialgo keep the focus, a model form is MUCH more
forgiving then
a acDialog form, as a model form allows the focus to change to the menu bar,
and further
code that opened the form continues to run. A fairly large portion of my
forms are model
because I want the user to return to the previous form. The model setting
for a form
IS NOT SET in code (it can be, but it is rare to do such). So, while
acDialog form
setting MUST be via code, a model form is the opposite, and you do NOT use
code
to set the forms model setting.
popup - this is form that stays on top of all other forms. For help screens,
wizards, and the like, this is a MOST USEFUL setting, and thus your
statements about using api and what not are complete wrong..
A popup form will remain on top, but ALLOW YOUR EXISTING FORMS TO KEEP the
focus. As mentioned, for wizards, or info displays, or exactly what the
original poser is asking for can be accomplished by setting the forms popup
value to true.
I expalin the differnce between acDialog forms and model forms here:
http://www.members.shaw.ca/AlbertKallal/Dialog/Index.html
What that article is missing complete is mention of popup forms....