R
Ray C
Is there a way to have commands changed under program control? In my menue,
I use the following code to check if a Form is already open and, if so make
it visible or if not. Open it.
Forms.mnu_menu.Visible = False
If CurrentProject.AllForms("frm_Stock").IsLoaded = True Then
Forms.frm_Stock.Visible = True
Else
DoCmd.OpenForm "frm_Stock", acNormal, "", "", , acNormal, MenuSelect
End If
I would like to pass the form name to a sub as a string and that way I could
use one piece of code instead of cnstantly duplicating it.
Should be something like DoCmd.openForm.[string containing form name].Visible
Thanks for any help RayC
I use the following code to check if a Form is already open and, if so make
it visible or if not. Open it.
Forms.mnu_menu.Visible = False
If CurrentProject.AllForms("frm_Stock").IsLoaded = True Then
Forms.frm_Stock.Visible = True
Else
DoCmd.OpenForm "frm_Stock", acNormal, "", "", , acNormal, MenuSelect
End If
I would like to pass the form name to a sub as a string and that way I could
use one piece of code instead of cnstantly duplicating it.
Should be something like DoCmd.openForm.[string containing form name].Visible
Thanks for any help RayC