B
Bill Mitchell
Hi,
I use many Shortcut Menus on forms and subforms. My
Shortcut Menus are based upon Macros which call various
RunCommands and RunCodes. The Runcodes are based upon
Functions() I have written that are like:
Public Function MyShortcutMenu(GetType as String,frm as
Form)
With frm
Select Case GetType
Case "Requery"
.Requery
Case "Etc..."
end select
end with
end Function
When I call the shortcut menu, I want to be able to send
the Subform location to the Function at runtime. This
way the shortcut will work wherever I am, sort of like
Runcommands do.
Does anyone know how I can do this?
Sort of like this:
MyShortcutMenu(GetType,forms![Main]![Contact].form!
[MySubform1])
if MySubform1 has the focus, or
MyShortcutMenu(GetType,forms![Main]![Contact].form!
[MySubform2])
if MySubform2 has the focus.
Thanks, Bill
I use many Shortcut Menus on forms and subforms. My
Shortcut Menus are based upon Macros which call various
RunCommands and RunCodes. The Runcodes are based upon
Functions() I have written that are like:
Public Function MyShortcutMenu(GetType as String,frm as
Form)
With frm
Select Case GetType
Case "Requery"
.Requery
Case "Etc..."
end select
end with
end Function
When I call the shortcut menu, I want to be able to send
the Subform location to the Function at runtime. This
way the shortcut will work wherever I am, sort of like
Runcommands do.
Does anyone know how I can do this?
Sort of like this:
MyShortcutMenu(GetType,forms![Main]![Contact].form!
[MySubform1])
if MySubform1 has the focus, or
MyShortcutMenu(GetType,forms![Main]![Contact].form!
[MySubform2])
if MySubform2 has the focus.
Thanks, Bill