I have a list box that displays reports that are supposed to open up when clicked. Some of the reports are opening up, some are not, and I can't seem to figure out why.
The relevant part of my VBA is like so:
So when I click the Reorder Report (one of those that's not working), I get a ReorderRpt message. That is exactly what the report is called.
Then...nothing happens. I do not get the "won't see this" message. The code doesn't get there.
If I substitute:
in the VBA, I still don't get my report or the "won't see this" message, but I do get a "Previewing report was cancelled!" message box. I have no idea where this is coming from...I searched the whole project's VBA and it was not found.
If I use the wizard to add a button to open the ReorderRpt report...it works perfectly fine.
Does anyone have any ideas why this report will not generate in the above fashion?
Thanks in advance!
The relevant part of my VBA is like so:
Code:
MsgBox (Me![ReportList])
DoCmd.OpenReport Me![ReportList], acPreview
MsgBox ("won't see this")
So when I click the Reorder Report (one of those that's not working), I get a ReorderRpt message. That is exactly what the report is called.
Then...nothing happens. I do not get the "won't see this" message. The code doesn't get there.
If I substitute:
Code:
DoCmd.OpenReport Me!ReorderRpt, acPreview
in the VBA, I still don't get my report or the "won't see this" message, but I do get a "Previewing report was cancelled!" message box. I have no idea where this is coming from...I searched the whole project's VBA and it was not found.
If I use the wizard to add a button to open the ReorderRpt report...it works perfectly fine.
Does anyone have any ideas why this report will not generate in the above fashion?
Thanks in advance!