S
seeker
I have noticed that forms have a key down event just like text boxes yet when
i put code in the event it does not work. for instance
if keycode = vbkeyreturn then
docmd.close "frmMyForm"
end if
does not close the form when I am anywhere on the form. If I put the same
code in a textbox and if I am in the textbox and hit enter then the form
closes. How does key down initiate on forms.
i put code in the event it does not work. for instance
if keycode = vbkeyreturn then
docmd.close "frmMyForm"
end if
does not close the form when I am anywhere on the form. If I put the same
code in a textbox and if I am in the textbox and hit enter then the form
closes. How does key down initiate on forms.