Design by Sue
Registered User.
- Local time
- Yesterday, 16:03
- Joined
- Jul 16, 2010
- Messages
- 816
I have a form that allows the user to select a date range, then click a button to open a report that shows the results based on the user input. I need to add VBA to check for no results in the query/report and give a message box telling there are no records available. I tried adding code to the NoData Event but it was not triggered by the code. From my research it looks like a count function might work but I can't seem to find how to set up the VBA. What is the best way to check for no records and add a message box? or is DCount a possibility?
Thanks
Thanks
Last edited: