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.

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

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 

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

Similar Threads

subform LostFocus 1
GotFocus event fires twice. 5
Focus Issue 11
Setting the Focus on a Control 5
Cancel On Lost Focus Event 3
SetFocus in Form Undo event 13
List Box Focus 4
tabsequence of controls on a form 3

Top