INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

Give user the choice whether to run subreport

Give user the choice whether to run subreport

(OP)
My Invoice report has a subreport that shows details of amounts of unpaid previous invoices.

This increases the time to generate an invoice by a large amount, in one case to about 20 seconds with the subreport, from about 2 seconds without it.

I'd like to give the user the option to show the subreport data or not. How is this best achieved?

RE: Give user the choice whether to run subreport

You can try use a checkbox on a form and then add code to the report section to set the subreport to visible or not based on the checkbox.

Duane
Vevey, Switzerland
Hook'D on Access
MS Access MVP 2001-2016

RE: Give user the choice whether to run subreport

(OP)
Hi, and thanks. Doesn't make the subreport invisible do just that rather than stopping the subreport loading, even if you can't see it?

RE: Give user the choice whether to run subreport

I'm not sure. You could test it by checking the performance. You could also add a little code to the On Print of a section in the subreport to debug.print something and see if there is anything in the debug window. Please test and report back.

Duane
Vevey, Switzerland
Hook'D on Access
MS Access MVP 2001-2016

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!

Resources

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