Visible = False / Visible = True Question

D

david

Have you attempted to have the code fire for either the
Subforms On Load, On Activate, or (worst case) On Current?
-----Original Message-----
I have this application that has a main form that allows
about 97 sub forms to be swapped out using an option group
of buttons. The problem I am having is this, when this
main form is launched, the first sub-form it contains by
default has itâ?Ts custom navigation buttons set to
Visible = False and only changed to Visible = True if the
administratorâ?Ts logs in. However, this does not happen.
The administrator has to swap out the default form and
come back to it to see the change.
Here is a sample of the code that is fired every time a sub-form is swapped:
Me![cmdFrst].Visible = True
Me![cmdPrev].Visible = True
Me![cmdNxt].Visible = True
Me![cmdLst].Visible = True
Tis code is placed in the sub-formâ?Ts on Open Event. Is
there another place it can be set to get instant results
when the Main form containing the default sub-form is
launched?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top