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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum date

Status
Not open for further replies.

mart10

MIS
Nov 2, 2007
394
GB
I am using CR XI

How can I restrict a data set to maximum date please
 
In top menu Report select "Selection Formulas" -> Group.

datefield = maximum(datefield)

This will suppress all other records but they will still be in recordset and will affect summaries.

You can still use Running Totals and use the same condition above to restricy RT recordset.

Failing that you will need to can use a SQL expression which returns the max date. You can then use this in your record selection.
NB it could be slow to run as whole dataset will come back and filtered against this expression within report.

Ian

 
I have used a different method which seems to work without using groups Just make the field equal to

maximum(lastfullmonth)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top