Sandra Smith
asked on
stop report opening if no data ACCESS 2010
I have the message no data for report in the ON NO DATA event, but the report still opens. How can I prevent the report opening when there is no data?
Sandra
Sandra
You will also need to handle the error message your main application will get when the report fails to open.
I cannot remember what the error number is, but I just use a Resume Next after testing for that error.
I cannot remember what the error number is, but I just use a Resume Next after testing for that error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the error handling code. This worked perfectly.
Sandra
Sandra
Open in new window