A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

!How to pass parameters to subreports



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2004, 03:43 PM
Eiby
external usenet poster
 
Posts: n/a
Default !How to pass parameters to subreports

Hi
  #2  
Old November 10th, 2004, 04:05 PM
Eiby
external usenet poster
 
Posts: n/a
Default

Hi:

I have a main report with 8 subreports. Each subreport has a "date field". I
want to filter the records based on this "date field". What I want to do is
to aks the user "on time"to input the "date" ans pass this information to the
8 subreports.

I can use the parameters but only with each individual subreport. What I
have tried is the following:

In each subreport, on the "recordsource", on the "Datefield", "selection
criteria" I wrote "Between Date1 AND date2". The report ask for the date
parameters but only in the corresponding subreport. I donĀ“t want the user to
input 8 times the date for each subreport.

I can not write the same critera on the main report since each subreport use
different tables.

Any idea about how to do it?

Saludos!

p.d. Thanks to Duane Hookom, Allen Browne and Marshal Barton for ther answer
to my previous question "How to do calculations...."


  #3  
Old November 10th, 2004, 04:25 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

Always "feed" criteria to a report/query through controls on forms. You
might want to check out this site
http://www.fontstuff.com/access/acctut08.htm.

--
Duane Hookom
MS Access MVP


"Eiby" wrote in message
...
Hi:

I have a main report with 8 subreports. Each subreport has a "date field".

I
want to filter the records based on this "date field". What I want to do

is
to aks the user "on time"to input the "date" ans pass this information to

the
8 subreports.

I can use the parameters but only with each individual subreport. What I
have tried is the following:

In each subreport, on the "recordsource", on the "Datefield", "selection
criteria" I wrote "Between Date1 AND date2". The report ask for the date
parameters but only in the corresponding subreport. I don“t want the user

to
input 8 times the date for each subreport.

I can not write the same critera on the main report since each subreport

use
different tables.

Any idea about how to do it?

Saludos!

p.d. Thanks to Duane Hookom, Allen Browne and Marshal Barton for ther

answer
to my previous question "How to do calculations...."




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PARAMETERS FOR STORED PROCEDURE (UPDATE, APPEND) Zlatko General Discussion 3 November 9th, 2004 12:01 PM
Pass Parameters in Hyperlink rerhart General Discussion 0 August 16th, 2004 04:22 PM
how to specify decimal on query Joe Au Running & Setting Up Queries 2 August 1st, 2004 05:52 PM
how to specify decimal on query Joe Au General Discussion 5 August 1st, 2004 05:52 PM
Pass Through Query Parameters Stacy Running & Setting Up Queries 3 July 8th, 2004 03:55 PM


All times are GMT +1. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.