How to get all dates available in a combobox box ACCESS 2010

I have a drop-down that shows a series of dates.  However, since this is a date field, how can I get it to reset to all dates of the user wants to have all records for all dates show?
Sandra SmithRetiredAsked:
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.

NerdsOfTechTechnology ScientistCommented:
I suggest adding a checkbox or button to toggle (enable/disable) a filter.

In other words, start with the full or filtered dataset, then have the user toggle between these sets using a button or checkbox (control)

If the dropdown is bound to the record; then you can use VBA to fill in the dropdown with your specified list, etc.
0
Sandra SmithRetiredAuthor Commented:
Actually, my problem seems to be larger than what I thought.  When the user filters the form to get the recordset, all is fine.  However, when I run a reset filters process to set all the comboboxes back to their default queries, nothing happens.  If I close the form and reopen, then all the data in the drop-downs are there.  So, not only does the date fields not reset, none of the comboboxes reset.  The answer would solve all these issues so the real question is, how to tell a form's comboboxes to revert to their original default recordsource queries?   this would take care of my problem.
0
Ryan ChongCommented:
>> If I close the form and reopen, then all the data in the drop-downs are there.

perhaps to reset the listed items in ur dropdown to show all default items, you would need to update the combobox's Rowsource property, and then follow by a Requery() statement to refresh the dropdown list.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Ryan ChongCommented:
read further here

ComboBox.RowSource Property (Access)
https://msdn.microsoft.com/en-us/library/office/ff845390.aspx

ComboBox.Requery Method (Access)
https://msdn.microsoft.com/en-us/library/office/ff191858.aspx
0
Sandra SmithRetiredAuthor Commented:
Yes, did that already in the code.  However, have solved the issue and all is working fine now, resolved myself.
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
Ryan ChongCommented:
can you tell us how you resolved the problems? it's good if you can share that info with us.
0
Sandra SmithRetiredAuthor Commented:
Resolved issue myself.
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 Development

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.