Advertisement

05.04.2008 at 01:14PM PDT, ID: 23375202
[x]
Attachment Details

Filtered subreports

Asked by CThomp2005 in Access Coding/Macros, Microsoft Access Database, Access Reports

Tags: Microsoft, Access, 2003, reports subreports

I have a gut feeling this is a relatively simple thing to do, just can't quite get where to do / program it...
Basic data structure:  We have Projects, and each Project has multiple Estimates.
I have a "main" report for each Project/Estimate - i.e., each page would be for Proj 1, Est 1; Proj 1, Est 2; Proj 2, Est 1; Proj 3, Est 1, etc.
The subreport is tied to the main report by Project # and lists summary info for the Estimates of the Project.  I want to filter the subreport to show *only* Estimate summary lines for Estimates = or < the current Esimate #.  Currently, as it is tied to the main report by Project # and there is no filter, previous Estimates show summary lines for *all* Estimates.
The report only works properly if you look only at the "now" information.  If you enter Estimate 3 for a Project and run a report, you'll get all the summary lines for Est's 1-3.  However, if you go back to Est 2 (say the customer lost their copy of this page and want a reprint), you have summary lines for Est's 1-3 on the report for Est 2.  Doesn't seem "right" to me.
I figured some sort of filter, or using VBA to set the RecordSource to something like "SELECT [Est summary fields] FROM [Estimate table] WHERE [Estimate Number] <= " & Me.Estimate Numer " (paraphrased - not my actual SQL), but I can't figure out where to insert this.
Any suggestions/help would be greatly appreciated.  Thanks much!Start Free Trial
[+][-]05.04.2008 at 03:27PM PDT, ID: 21497178

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 05:25PM PDT, ID: 21497515

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 06:09PM PDT, ID: 21497605

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 07:18PM PDT, ID: 21497785

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 07:59PM PDT, ID: 21497927

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Access Reports
Tags: Microsoft, Access, 2003, reports subreports
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.04.2008 at 08:00PM PDT, ID: 21497932

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 08:28PM PDT, ID: 21498015

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 08:31PM PDT, ID: 21498018

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628