D
Dave Ruhl
Sorry for the cross-post, but I didn't get an answer in
the Forms Programming forum...
==================================
Hello, I want to know how I can tell if the ENTER key was
hit to make a control lose focus (as opposed to TAB or a
mouse click). I've tried the OnKeyPress event, but it
doesn't get triggered by the ENTER key. I've also tried
the OnKeyDown event. It does catch the ENTER key, but
leaves my textbox with a NULL value, even if data appears
to be in it.
So, there doesn't seem to be a way to trap the ENTER key
without losing the data in my control. Can this be
done ? Thanks!
the Forms Programming forum...
==================================
Hello, I want to know how I can tell if the ENTER key was
hit to make a control lose focus (as opposed to TAB or a
mouse click). I've tried the OnKeyPress event, but it
doesn't get triggered by the ENTER key. I've also tried
the OnKeyDown event. It does catch the ENTER key, but
leaves my textbox with a NULL value, even if data appears
to be in it.
So, there doesn't seem to be a way to trap the ENTER key
without losing the data in my control. Can this be
done ? Thanks!