Sohaila Taravati
Registered User.
- Local time
- Today, 03:08
- Joined
- Oct 24, 2001
- Messages
- 266
I need to open two reports at the same time. I have the code behind my button like this:
DoCmd.OpenReport "report1", acPreview
DoCmd.OpenReport "report2", acPreview
But my problem is when report1 does not have any data, it deosn't let the other one open (I have the code behind the On No Data on both of my reports).
Now if I reverse them it will print report1 and lets me know that is canceling report2.
DoCmd.OpenReport "report2", acPreview
DoCmd.OpenReport "report1", acPreview
what can I do to prevent this!

DoCmd.OpenReport "report1", acPreview
DoCmd.OpenReport "report2", acPreview
But my problem is when report1 does not have any data, it deosn't let the other one open (I have the code behind the On No Data on both of my reports).
Now if I reverse them it will print report1 and lets me know that is canceling report2.
DoCmd.OpenReport "report2", acPreview
DoCmd.OpenReport "report1", acPreview
what can I do to prevent this!