count number of records from a specific date

L

LBS

I need to count the total number of records in a report for all records that
have a hiredate > the 12th of the month. I can't figure out how to
accomplish this. I need it to be for the 12th of the month of the current
month and year. Any help would be greatly appreciated
Thanks
LBS
 
D

Duane Hookom

You can try something like:
=Sum(Abs([HireDatd]> DateSerial(Year(Date()),Month(Date()),12) ))
The DateSerial() returns the 12th of this month.
HireDate>DateSerial() returns -1 if true
Abs() returns 1 if true
Sum(1) counts the number of true values in your report.

This expression can be in the Report or Group headers or footers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top