switchboard refreshing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using a me.visible method for my form system.

I open forms from the switchboard like this:
me.visible = false
docmd.openform "formname", openargs:= me.name

On the called form's unload event
I run the following:
openargs.visible = true


The problem that is causing me now to want to change this, is that
I just want to be able to re-run the "filloptions" routine that determines
the buttons from the switchboard options table.. because I've customized it a
bit.

I've tried everything from putting the filloptions in the activate event,
load event, gotfocus event, and even tried form_Switchboard.refresh... all to
no avail.

I ended up just closing the form when I open another form.
And ofcourse, that does the trick.

Is there something I can do that forces what is in the current event of the
switchboard to run again when it gets the focus?
 
Off the top of my head how about a...

Forms!Switchboard.Refresh

....in the Unload event of the other forms?

I have not tested that though.
 
using Access XP (2002)

I tried form_Switchboard.refresh in the unload event
to no avail.

I'll try forms!Switchboard.refresh
 
Back
Top