Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Preview same report several times

Preview same report several times

Preview same report several times

I need to simultaneously preview the same report several times, each with a different filter.  Then the user shall close or print the open report(s) they desire.

I created a button that does the series of "DoCmd.OpenReport" commands, each with a different filter.  The code compiles and runs, but I only receive the FIRST request.  I am sure I'm getting no messages or errors.

I have serched Knowledgebases and Helps, but I cannot seem to phrase my question correctly to get my answer.

Thanks in advance!!

RE: Preview same report several times

Ehat you are trying to do, you can't do directly. You can only have one instance of a specific report open at a time.

One way to get around it (not very graceful, I admit) is to create as many copies of the report as you want open, and then open those since you CAN have multiple reports open.

So if the report is called "rptMainReport", and you want to open it four times, each with different criteria. Make three copies, "rptMainReport_1", "rptMainReport_2" and "rptMainReport_3". Now use 4 docmd.openreport's to open each one with it's own specific criteria.

Tim Gill
Gill Consulting

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close