472,358 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 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 2045
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.