Requery Event Blanking Out Previously Filled In Fields

R

ridgerunner

I have two combo boxes on a form. One of them allows a user to choose a
category and the other filters the choices available based on the chosen
category. There is a requery event in the afterupdate property of the
category field. That part works fine. The form needs to be viewed in a data
sheet view. If you close the form and re-open it to continue working, a new
entry causes all of the previously entered data in the field containing the
filtered choices to blank out. What am I doing wrong? Any help with this is
greatly appreciated. I am nearing the end of the project I am working on and
this is a big roadblcok.

ridgerunner
 
B

Bob Quintal

I have two combo boxes on a form. One of them allows a user to
choose a category and the other filters the choices available
based on the chosen category. There is a requery event in the
afterupdate property of the category field. That part works fine.
The form needs to be viewed in a data sheet view. If you close
the form and re-open it to continue working, a new entry causes
all of the previously entered data in the field containing the
filtered choices to blank out. What am I doing wrong? Any help
with this is greatly appreciated. I am nearing the end of the
project I am working on and this is a big roadblcok.

ridgerunner

Any attempt to use a combobox with a filtered row source is going to
run into the problem, because the combobox will only display data
that is in the current record's source, not those in the other rows
of the continuous form or datasheet.

One trick may be to move the requery to the on_enter event of the
combobox, with a corresponding requery of all the possibilities in
the combo box's on_exit event.
 

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