troubleshooting Question

Access 2010

Avatar of SowleMan
SowleManFlag for United States of America asked on
Microsoft AccessMicrosoft Development
4 Comments2 Solutions302 ViewsLast Modified:
I am using Access 2010 with VBA.  I have a simple form that uses a query (based on a table) as the record source.  Using VBA, how can I determine if the query successfully found records?  How many records?  I would like to use the form's Open_Event to determine if the query was successful and there are records available for the form to process. If not, I will display a message indicating no records were found and CANCEL=TRUE and exit the OPEN_EVENT.
ASKER CERTIFIED SOLUTION
Joe Howard

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 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 2 Answers and 4 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