List box error

G

Guest

How do I set focus away from a list box? I have 4 list boxes on a tab
control that are interdependant. I.e. the value of one becomes criteria to
requery the next. When I requery the 1st list box, I set the focus to it and
set the List Index property to have a record selected to use in the second
list's query criteria. Then I need to do the same for the 2nd-4th list
boxes. The problem is that once I set the focus to the 1st list box, I can't
move it. SetFocus to the form executes, but the focus stays on the list box.
SetFocus to any other control causes 'Runtime Error 2115: The macro of
function set to the BeforeUpdate or ValidationRule property for this field is
preventing Microsoft Access from saving the data in the field.' I don't have
any functions set for either property
 

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