I need to cancel Open Report and Restore minimized form, if no data is available for the report. For some reason Docmd.CancelEvent doesn't want to be recognized and if I use Exit Sub, the code runs two times and still displays the report.
I really don't know what data determines if it is new data for you, but you can code to open the table and do a search for, mabey today's date and if found, open report else form.restore. Or, when saving data, you can add a hidden non visible field that records when the data was inputed with Date(), then do a search. I really don't know your circumstances.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.