switchboard refreshing

J

jonefer

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?
 
J

Jeff Conrad

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.
 
J

jonefer

using Access XP (2002)

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

I'll try forms!Switchboard.refresh
 

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