No Button OnClick Event?

I've got an data entry form which has an OK button with code in the
OnClick event. When the focus is on one of the dbedit fields from data
entry and the OK button is clicked, the OnClick event is not
triggered. Moving the mouse over the button causes the button to
depress but the OnClick event is not triggered until after a 2nd
click. The button works fine when accessed via the hot key or if no
data entry is performed. Is there some way to fix this problem?

TIA for any help provided...

Regards,
  - Bob Boyd