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

Get record from subfrom and put it in a report header

65
Salut,

Suppose I have frmA and subformB inside frmA. I have a button opens a report rptA based on subformB. In this report I have txtA and textB. In subformB I have date

01/01/2007
12/02/2007
03/03/2007
28/05/2007

I want to have the txtA and txtB in rptA the MIN and MAX dates in the list above. This means that txtA in rptA must contain 01/01/2007 and txtB in rptA must contain 20/05/20007.

Actually, in the header of the report I will have a message stating " report between 01/01/2007 and 28/05/2007. And these days must be changed upon the dates in subformB.

Thank you for help.
Abolos
Jul 14 '07 #1
2 1160
puppydogbuddy
1,923 Expert 1GB
Salut,

Suppose I have frmA and subformB inside frmA. I have a button opens a report rptA based on subformB. In this report I have txtA and textB. In subformB I have date

01/01/2007
12/02/2007
03/03/2007
28/05/2007

I want to have the txtA and txtB in rptA the MIN and MAX dates in the list above. This means that txtA in rptA must contain 01/01/2007 and txtB in rptA must contain 20/05/20007.

Actually, in the header of the report I will have a message stating " report between 01/01/2007 and 28/05/2007. And these days must be changed upon the dates in subformB.

Thank you for help.
Abolos
Control Source of txtA = Min(Forms!frmA!subformB.Form!YourDateField.Value)
Control Source of txtB = Max(Forms!frmA!subformB.Form!YourDateField.Value)

report header>>>between txtA.Value And txtB.Value
Jul 15 '07 #2
abolos
65
Thanks for reply. But it gives me "Enter Parameter Value". I solved it by not adding the subformB.form to the syntox. It is now taking the value directly from the txtA and txtB in the form and not in the subfomB.

Thanks a lot.
Jul 16 '07 #3

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

Similar topics

5
by: Bob | last post by:
Hi, I am using Access 2000 to print out an address book. I have designed the report based on a database whose first record is not blank. In the design there is a one line report header, a onle...
1
by: seeker52 | last post by:
I receive an error 3464 when I put =count(*) in the controlsource of a textbox on the report header. The error is thrown at the filter created for the report when I docmd openreport. The error is...
0
by: Tony Williams | last post by:
I have a database with three tables as follows Table 1=Documents Table 2= Groups On a form based on Table 1 is a continuous subfrom that has a combo box based on Table 2 When the user makes a...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
2
by: bmshaikh | last post by:
I have a form that contains a subfrom. form = tblSSO tab1 = sbform = tblPump tab2 = sbform = tbl3 I get this error when i go to tab2. The record gets added just fine (here is the code Set...
2
by: Bex | last post by:
Right been a whle since i worked with subforms... I have a mina from which has a subfrom included. (standard one to many relationship). The subform just displays differnet addresses with the...
1
by: Robert | last post by:
I have a form that has a table; tblProjects; as its record source. The form is filtered, however, by two combo boxes in the header. One allows the user to select a client, the other a project for...
2
by: anthony | last post by:
My report has RegNo header, AOL header, Detail section, RegNo footer. The RegNo footer contains a subreport which consists only of a label and a single control, both in the subreport's detail...
7
by: iheartvba | last post by:
Hi, I have a report with only a header and a footer, I want to put a sub report in as the reports detail, the sub report has 3 records and then a Sum at the end, for the sum I have created a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.