Focus issue

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
 
L

Linq Adams via AccessMonster.com

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top