Focus issue

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

I have a listbox that is made visible when
a user clicks on an associated command
button. The listbox includes an option to
"CANCEL" if they decide not to select
one of the options listed. If the user
ignores the "CANCEL" option but instead
clicks somewhere else on the form, I have
coded in the "LostFocus" event a statement
to again to make "False" the listbox's visibility.

I get a runtime error that I can't make the
visibility false while the control has the focus.
How can that be if the "LostFocus" event has
fired?

Bill
 
That's Access! It's very quirky when it comes to focus! Just set focus to
any other control, then make your listbox invisible again.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 
Back
Top