473,405 Members | 2,334 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,405 software developers and data experts.

Opening subreports with dates

I have a report that includes 5 different subreports. I'd like to be
able to open this report using a date function (Start Date and End Date).
I'd like all five subreports to show the data from those dates. I have
learned how to use this start/end function but I can't figure out how to use
it with these subreports. Right now the report opens but asks for start/end
dates for each of the five reports. Is there a way I can input one set of
dates and have all five reports show up using the same dates?
I hope I haven't confused this.
I'm also using a form switchboard for activating this report, if
switchboard is the correct word. The switchboard at this time has 4
different reports that can be accessed. The first three are very basic
reports so when I use the start/end date function it works very well for the
individual report I'm trying to access. However the report that has the
five subreports is more difficult. I guess I could input a start/date for
each of the five subreports but that seems to be very time consuming and
wasteful. I'm sure there is a way to do this I just don't know how.
I'll bet now I've confused the issue. If so let me know and I'll try a
different approach.
Thanks for your continued help,
Don.......
Nov 13 '05 #1
1 2107
To enter the dates once for all subreports, you need to get them to read the
dates from a form. It can be your switchboard, or a form designed
specifically form the purpose.

Let's assume you have a form named "Switchboard", with text boxes name
txtStartDate and txtEndDate. Set the Format property of these text boxes to:
Short Date
so Access won't accept any invalid date.

Now open the query that is the RecordSource for your first subreport. In
query design, choose Parameters from the Query menu. Access opens a dialog.
Enter two rows, like this:
[Forms].[Switchboard].[txtStartDate] Date/Time
[Forms].[Switchboard].[txtEndDate] Date/Time

Repeat for the other subreports.

Now when you open the main report, each of the subreports will read the
dates from the form. This assumes that the form is open and the dates are
filled in when you run the report.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Don Sealer" <vz******@verizon.net> wrote in message
news:rW2Ad.15024$EL5.8268@trndny09...
I have a report that includes 5 different subreports. I'd like to be
able to open this report using a date function (Start Date and End Date).
I'd like all five subreports to show the data from those dates. I have
learned how to use this start/end function but I can't figure out how to
use
it with these subreports. Right now the report opens but asks for
start/end
dates for each of the five reports. Is there a way I can input one set of
dates and have all five reports show up using the same dates?
I hope I haven't confused this.
I'm also using a form switchboard for activating this report, if
switchboard is the correct word. The switchboard at this time has 4
different reports that can be accessed. The first three are very basic
reports so when I use the start/end date function it works very well for
the
individual report I'm trying to access. However the report that has the
five subreports is more difficult. I guess I could input a start/date for
each of the five subreports but that seems to be very time consuming and
wasteful. I'm sure there is a way to do this I just don't know how.
I'll bet now I've confused the issue. If so let me know and I'll try a
different approach.
Thanks for your continued help,
Don.......

Nov 13 '05 #2

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

Similar topics

6
by: BlackFireNova | last post by:
Using Access 2002 I am writing a report which draws data from several different tables. I can't link all the tables in a query, as some can not be related without truncating the data. I plan...
1
by: Anne | last post by:
I have a report containing multiple subreports (approximately 37 subreports) that are based on individual queries. The query calls to only display the subreport if there is valid data in the table...
0
by: Don Sealer | last post by:
I have a report that includes 5 different subreports. I'd like to be able to open this report using a date function (Start Date and End Date). I'd like all five subreports to show the data from...
3
by: manning_news | last post by:
Using A2K. I've been asked to modify a report currently requiring only one date parameter to now accept a date range. The main report has 2 subreports and is not bound to a table or query. The...
0
by: KartoffelKiffer | last post by:
Hello, i have to do a little Crystal Report task, where i need help. I have a mainreport in which are some subreports. The size of the subreports can vary so the subreport which could be bigger...
0
by: neoteny2 | last post by:
I need MS Access to automatically create reports/subreports based on specific criteria. I am building a database in Access 2003 with different locations/sites. I have the "sites" table created...
1
by: David | last post by:
Folks, I have four subreports in a report in the detail section. I suppose I could move them to the footer of the report. Anyway, if any of them have data, I want the main report to force a...
6
by: Brett Barry: Go Get Geek! | last post by:
Hello, I have a main report with a Record Source, a DateToday table, that has the current Month and Year. I have about 60 queries, each pulling different data via ODBC, that I am creating...
10
by: glenfernandez | last post by:
HI there, Need a little help with the reporting component of my MS Access 2002 project and would appreciate any insight / help from the experts. Please bear with me as I am still learning Access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.