C
cbgraham_asu
I have a custom switchboard. I want it to open a new menu and THEN
close the previous menu, so that the screen doesn't blink in between.
Here's the code I keep trying to tweak but which never works.
Const conCmdGotoMenu = 1
Dim stfrm As String
(...some in between stuff that works fine)
' Go to Menu
Case conCmdGotoMenu
Set stfrm = Me.Form
DoCmd.OpenForm rs![Argument]
DoCmd.Close acForm, "stfrm"
My problem is that "Set stfrm = me.form" doesn't work. Nothing else
I try does either. I'm at a loss. So how do I set the name of the
active form as a variable? This has to work as part of a public
function so that it can be called from various forms and work. I
could just do...
docmd.Close
Docmd.openform rs![Argument]
.....and it works okay, but the blink "annoys people." =S And now i
have to solve it just for the principal of the matter. Many Thanks!
close the previous menu, so that the screen doesn't blink in between.
Here's the code I keep trying to tweak but which never works.
Const conCmdGotoMenu = 1
Dim stfrm As String
(...some in between stuff that works fine)
' Go to Menu
Case conCmdGotoMenu
Set stfrm = Me.Form
DoCmd.OpenForm rs![Argument]
DoCmd.Close acForm, "stfrm"
My problem is that "Set stfrm = me.form" doesn't work. Nothing else
I try does either. I'm at a loss. So how do I set the name of the
active form as a variable? This has to work as part of a public
function so that it can be called from various forms and work. I
could just do...
docmd.Close
Docmd.openform rs![Argument]
.....and it works okay, but the blink "annoys people." =S And now i
have to solve it just for the principal of the matter. Many Thanks!