Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date in group header and group footer different 1

Status
Not open for further replies.

patty1

Programmer
Apr 17, 2002
105
US
Does anyone know why the formula in Group1 header brings down Monday's date and the one in Group1 Footer brings down Friday's date. I would like them both to be Friday's.


Formula in Group1 header
"Week Starting: " + totext(date({Transaction_History.Post_Date}), "MM/dd/yyyy")

Formula in Group1 Footer
"Week Ending: " + totext(date({Transaction_History.Post_Date}), "MM/dd/yyyy") + " " + "Sub Total"
 
The Group Header shows data from the FIRST record in that group. The Group Footer shows data from the LAST record in that group.

If the data is sorted my dates, you can always show in the Group Header the maximum date using a formula such as:
----------------------------------------------
Maximum({your_date_field}, {your_Group_Field})
----------------------------------------------

Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
If is saying that the field cannot be summarized.

Maximum(GroupName ({Transaction_History.Post_Date}, "weekly"))
 
Sounds like you are grouping on a date field with a weekly option. Hence, you need to use something like:
---------------------------------------
Maximum ({Transaction_History.Post_Date}, {Transaction_History.Post_Date}, "weekly")
---------------------------------------

Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top