Solved

Sub-Report

Posted on 2003-11-25
4
301 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

920 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

15 Experts available now in Live!

Get 1:1 Help Now