G
Guest
Hi all,
I have a Form with a combo box that I access by pressing F6 with the
following function:
Function AutoKeysF6()
On Error GoTo AutoKeysF6_Err
' Find PO#
DoCmd.GoToControl "FindPO"
AutoKeysF6_Exit:
Exit Function
AutoKeysF6_Err:
MsgBox Error$
Resume AutoKeysF6_Exit
End Function
The problem is that when the focus is in any of the subforms it doesn't work.
I use this same combo box in more than one form and want to find a way to
refer to the parent form that somehow will let me use the function in a
general way.
I am still a newbie and can't figure it out.
Any help would be greatly appreciated.
Emilio
I have a Form with a combo box that I access by pressing F6 with the
following function:
Function AutoKeysF6()
On Error GoTo AutoKeysF6_Err
' Find PO#
DoCmd.GoToControl "FindPO"
AutoKeysF6_Exit:
Exit Function
AutoKeysF6_Err:
MsgBox Error$
Resume AutoKeysF6_Exit
End Function
The problem is that when the focus is in any of the subforms it doesn't work.
I use this same combo box in more than one form and want to find a way to
refer to the parent form that somehow will let me use the function in a
general way.
I am still a newbie and can't figure it out.
Any help would be greatly appreciated.
Emilio