Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / April 2008

Tip: Looking for answers? Try searching our database.

Requery Event Blanking Out Previously Filled In Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ridgerunner - 22 Apr 2008 13:43 GMT
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
Bob Quintal - 23 Apr 2008 00:38 GMT
> 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
[quoted text clipped - 8 lines]
>
> 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.

Signature

Bob Quintal

PA is y I've altered my email address.
** Posted from http://www.teranews.com **

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.