Solved

Sub-Report

Posted on 2003-11-25
4
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
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.

751 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