combo box w/criteria in the row source to show all previous entries even when the criteria doesn't match

I have an Access 2010 database with a combo box in a subform that is in datasheet view.  In the row source of the combo box I have a query that limits the entries in the combo box based on criteria that it gets from the main form.  This part works correctly.  The problem I am having is that previous records in the datasheet subform don't show the entries in the combo box field if the criteria in the current record doesn't match.  For example:  the main form has a field called "Origin".  This data may change or it may stay the same depending on the unique circumstances of the record.  In the combo box on the subform I tell it it to look at the data in the "Origin" field and filter the set of data that populates in the combo box according to the data.  Because "Origin" can change, the entries that show up in the combo box changes too.  When this happens all the records with that combo box field are blank.  Help, please.
animalloverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
This is done using the OnEnter and OnExit events of the combobox:

  OnEnter, set the filter as you do now for the current record.
  OnExit, remove the filter so all options will be showed.

/gustav
0
PatHartmanCommented:
I created a sample database to explain the problem and show one possible solution.  The format is .mdb since the problem has existed forever.
FixCascadingCombos130128.zip
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
animalloverAuthor Commented:
Thank you.   This is exactly what I was looking for.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.