Solved

Sub-Report

Posted on 2003-11-25
4
310 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
ID: 9818737
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
ID: 9818755
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
ID: 9818878
You the man!!!
0
 
LVL 32

Expert Comment

by:jadedata
ID: 9818898
thanx for the question!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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