Not sure how to handle this and just need to be pointed in the right direction. Can't seem to find what I am looking for by doing research. My task I think should be rather simple and something I am sure someone has incountered before but can't seem to find it. I have a report whose parameters are controlled by a form. Right now I have the report checking on the No Data event if no records are returned to show a message box and set Cancel = True so the report does not open. But on the On Close event of the report it closes the Form. I want the form to either remain open or reopen after no data is found. I have tried running a macro that reopens the report and is triggered in the no data event but of course it does not work because when the report closes it closes the form. But if it is a good report i need it to close the form when the report is closed. Do I need to instead of using the No Data Event be checking the Data Set in the Report Open event instead and then cancel opening the report and set my form to visible. I just need some direction and can figure out the commands.
Thanks in advance.