473,378 Members | 1,412 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,378 software developers and data experts.

Subreport Control Reference

There is a report with 2 unbound sub-reports. I'd like to filter each sub report for a specified date range (the same range for each). If I put the criteria in design of each sub report it filters for the dates entered but asks for each date twice (once for each report). I'm struggling with the coding to reference the fields on each sub report. I was hoping to have a cmdButton on the main form that opens this report and passes the start and ending dates entered once to each subreport.

I found this coding, but it doesn't seem to work:

Expand|Select|Wrap|Line Numbers
  1. Reports![MasterReportName]![SubReportName].Report![Field] Between [Enter Start Date:] AND [Enter End Date:]
  2.  
Dec 16 '16 #1
1 2901
PhilOfWalton
1,430 Expert 1GB
I suspect your approach should be to have the start & end dates on your form and have the sub report's underlying query have criteria referring to the dates on the form

Something like Between Forms!MyForm!StartDate and Forms!MyFormEndDate

http://www.knowledgewave.com/blog/ms...e-range-2.html gives a simple set of instruction.

Phil
Dec 20 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: vindaloo1 | last post by:
I'm using Access 2000 and I have a main form and a subform. When a control on the subform is updated I am trying to update a control on the mainform. But instead of updating the control on the...
1
by: Frank | last post by:
I am trying to manipulate a textbox display value of subreport from main report's detail print() event. The goal is this, if there is no record from database, replace the blank space from textbox...
4
by: MLH | last post by:
I have a report and on it, a subreport control Main Report Name: rptInvoiceMain Sub Report Name: rptInvoiceSubReport SubReport Control Name: rptInvoiceSubReportCtl The...
0
by: MLH | last post by:
I have a main report with a subreport on it. Main name: rptInvoiceMain Sub name: rptInvoiceSubReport The main report is unbound. A fiew calculated controls are all it has. The subreport is...
2
by: Alex Maghen | last post by:
I need to be able to get a reference to a Control on an ASPX Page by the exact ID that I gave that control at Design-Time. Let's say I created an ASPX that had a control: <asp:TextBox...
2
by: Jimmy | last post by:
On the subreport, records are grouped by WorkDate. In the WorkDate header there is a textbox named DateCounter with the control source =1 and running sum set to yes. In either the report footer or...
0
by: JasenC | last post by:
I've just upgraded from VS 2003 to VS 2005 and I've downloaded the latest service pack. However when I try to add a button to my form in design mode I keep getting this error. "A circular...
2
by: bobh | last post by:
Hi All, I'm having trouble figuring out the vba(AccessXP) for the following issue; I have a report which has a sub-report in the report footer section. The sub-report has most of it's...
12
D Giles
by: D Giles | last post by:
Access 2003: A subreport control (sum total calculated textbox located in the subreport report footer) does not show total of all records when referenced as a total in the main report footer - only...
2
by: Gayathri P | last post by:
I try this code to make controls at run time. I got this bug "A circular control reference has been made. A control cannot be owned by or parented to itself". How to resolve this? class...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.