473,414 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Parent Report With 8 Sub-Reports

I have 8 reports that I want to run. Each report is only about 6-7 lines
long. I'd like to get them all on a single page.
So I created a parent report and made each of the 8 desired reports a
sub-report. That part all works fine.

My problem is that each of the 8 sub-reports is based on a different query.
Each of the 8 queries has 2 parameters. However, the 2 parameters are the
same for all 8 queries. When I run the parent report I am prompted for the 2
parameters 8 different times (one for each query). How can I prompt the user
for the 2 parameters just one time and then use them for all 8 queries?

Thanks In Advance,
Fred

Nov 13 '05 #1
1 2050
Create a pop-up form where the user can enter the two parameters. Add an OK
button on the form and put the foloowing code in the Click event:
Me.Visible = False

Put the following code in the Open event of the parent report:
On Error Resume Next
DoCmd.OpenForm "NameOfPopupForm",,,,,acDialog
If Not IsLoaded("NameOfPopupForm") Then
Cancel = True
Exit Sub
End If

You'll find the IsLoaded function in a standard module in the sample
NorthWind database. You need to copy it and put it in a standard module in
your application.

Put the following code in the Close event of the parent report:
DoCmd.Close acForm, "NameOfPopupForm"

Change the two parameters in your queries to:
Forms!NameOfPopupForm!NameOfControlForFirstParamet er
Forms!NameOfPopupForm!NameOfControlForSecondParame ter

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Fred Zuckerman" <Zu********@sbcglobal.net> wrote in message
news:tV****************@newssvr14.news.prodigy.com ...
I have 8 reports that I want to run. Each report is only about 6-7 lines
long. I'd like to get them all on a single page.
So I created a parent report and made each of the 8 desired reports a
sub-report. That part all works fine.

My problem is that each of the 8 sub-reports is based on a different query. Each of the 8 queries has 2 parameters. However, the 2 parameters are the
same for all 8 queries. When I run the parent report I am prompted for the 2 parameters 8 different times (one for each query). How can I prompt the user for the 2 parameters just one time and then use them for all 8 queries?

Thanks In Advance,
Fred

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dayne | last post by:
Can a Parent thread catch a event send by a child thread? Dayne
0
by: Becky | last post by:
Hi: I have a main report that calls a sub-report which contains several pages of data. One of the column headings in my sub-report is called "Funds". If several records contain the same Fund...
4
by: Michael Fay | last post by:
There have been threads in this newsgroup explaining how to tab out of a subform to the parent form -- without having to use ctrl-tab (of which users might be unaware -- and at any rate, they...
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
2
by: jw56578 | last post by:
Is it possible to call a method from a parent object, but have the childs overriden method called instead of the base method? I want several children objects to all call a certain method when they...
7
by: msxkim | last post by:
How to execute functions in the parent class first and then functions in the child class? For example, I have a parent class with functions 'ONE' and 'TWO' and child class has a function 'THREE'. ...
4
by: eBob.com | last post by:
I have a "parent" form (if that's the right terminology), Form1. I declare two public values in the parent form : Public Class Form1 Inherits System.Windows.Forms.Form Public CurDir As String =...
10
by: Goran Djuranovic | last post by:
Hi all, Does anyone know how to declare a variable in a class to be accessible ONLY from a classes instantiated within that class? For example: ************* CODE ***************** Public...
1
by: Yuk Tang | last post by:
Leading on from a recent topic, "How does child class access parent's variables", I would like to ask, what's the most elegant way of changing a parent/grandparent/great-grandparent's property? ...
14
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.