If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Requery Event Blanking Out Previously Filled In Fields
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 |
#2
|
|||
|
|||
Requery Event Blanking Out Previously Filled In Fields
=?Utf-8?B?cmlkZ2VydW5uZXI=?=
wrote in : 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. -- Bob Quintal PA is y I've altered my email address. ** Posted from http://www.teranews.com ** |
Thread Tools | |
Display Modes | |
|
|