Soemtimes have to press command buttons twice ?!?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a complex set of routines that manipulate the entries in a listbox. There are 9 command buttons to do various things - usually followed by a requery of the listbox

In certain circumstances, when I press a command button, it does not execute the event procedure (I have confirmed by putting a message box at the top). When I press the same command button again, it does the appropriate action

Does anyone have any idea what might cause this? I think this started happening when I inserted a '.selected' statement after a Requery, but I can't be sure.
 
This sounds as the focus may not be on the form and the
first click simply sets the focus to the form then the
second click actually causes the action.

Hope this may help.

Byron
-----Original Message-----
I have a complex set of routines that manipulate the
entries in a listbox. There are 9 command buttons to do
various things - usually followed by a requery of the
listbox.
In certain circumstances, when I press a command button,
it does not execute the event procedure (I have confirmed
by putting a message box at the top). When I press the
same command button again, it does the appropriate action.
Does anyone have any idea what might cause this? I
think this started happening when I inserted
a '.selected' statement after a Requery, but I can't be
sure.
 
Back
Top