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!

sorting null values on reports

Status
Not open for further replies.

mmaginniss

Technical User
Jun 9, 2003
20
US
I am trying to sort a field ascending by date. Some of the records contain null values and those values appear first on the report when previewed. I would like to change the sort order so that the blank (null) values appear last. Any ideas?
 
in the recordsource for the report, add a calculated field:
(tweak DateFieldName = your field name)


Sort: IIf([DateFieldName] Is Null,1,0)

sort it ascending. put it to the left of the DATE field. sort the date field ascending too.

g
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top