Solved

Sub-Report

Posted on 2003-11-25
4
297 Views
Last Modified: 2008-03-06
I have a sub-report in a main report that pulls off the same query. The problem is that the query asks the user to input a date so it will only pull the records on that date.
So when the report opens it asks the user to enter a date and instead of just once it asks multiple times because of the sub-report. If I run the report without the sub-report it only asks once but with the subreport it asks 5 times. How can I link the entered date of the main report to the sub-report. I've tried to link it on the Link Child Fields and the Link Master fields but it won't work. The column that I'm trying to link is the AsOfDate.
0
Comment
Question by:Code_Buzz
  • 3
4 Comments
 
LVL 32

Expert Comment

by:jadedata
Comment Utility
Hey Code_Buzz!

  Copy the main report query
  Remove the date parameter
  Link the subreport to the Mainreport by the other links + this date.
 
  and that should do it.

regards
Jack
0
 
LVL 32

Accepted Solution

by:
jadedata earned 500 total points
Comment Utility
It might be good to launch this report from a form where this AsOfDate will be available for evaluation.
Use the form control (forms!launchform.txtAsofDate) as the parameter
All the queries involved that use this date would be able to see and evaluate this at runtime.

This instead of the "ghost" parameter you are using now.
0
 

Author Comment

by:Code_Buzz
Comment Utility
You the man!!!
0
 
LVL 32

Expert Comment

by:jadedata
Comment Utility
thanx for the question!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now