troubleshooting Question

access 2003 filter no results - "Enter parameter value"

Avatar of etech0
etech0Flag for United States of America asked on
Microsoft Access
18 Comments3 Solutions579 ViewsLast Modified:
Hi!
I have some VBA code that filters a form dynamically, based on the values of combo boxes.
When the user chooses a value in a combo box that has no results on the form, instead of just getting no records, access throws an "Enter Parameter Value" error, asking for ID, which is the first field on the form.
I tried setting up an OnError, but it seems that OnError does not pick up "Enter Parameter Value".
Is there a way to set this up so that if there are no results, either no results are displayed, or else the user gets a message box and then sees the results from the previous filter?
Thanks!
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 3 Answers and 18 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros