Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recognizing KeyDown after database interaction

Status
Not open for further replies.

JeanineMM

Instructor
Aug 21, 2001
4
US
I have a problem that only shows up some of the time.
The system sometimes fails to recognize a form_KeyDown event.
When I put in breakpoints, the project works fine, that is, after removing
the breakpoint, the keydown is recognized. I do have a form.setfocus command.
Right before the keydown, the project accesses a database (sets RecordSource to be an SQL statement, gets back fields, one of the fields is displayed, all of which seems to work fine.
Any ideas?
 
could it be possible, that after retreiving data from the Database, the focus is on another object, for example a comboBox. Try setting the focus to the whole form.
 
I do use form.setfocus and it doesn't seem to work.
Or, more correctly, it doesn't work some of the time.
Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top