30 Days or Less

G

Guest

I have a date field = Job Readiness Assessment CG 1 and a date field = Date
Enrolled. I'm trying to create an expression in a report that indicates the
% of Job Readiness Assessments that were completed in 30 days or less from
date enrolled. I'm stuck :(
 
G

Guest

In your report or group header or footer, you can use an expression like:
=Sum(Abs(DateDiff("d",[Date1],[Date2]) <=30))/Count(*)
 
G

Guest

Thanks for your reply. As you suggested I'm using

=Sum(Abs(DateDiff("d",[Job Readiness Assessment CG 1],[Date
Enrolled])<=30))/Count(*)

in the footer of the report. But it seems to be counting all dates fields
that are not empty? It doesn't seem to be applying the <=30? Date enrolled
will never be Null but the CG's may be. Does that matter? I appreciate any
and all help.

Duane Hookom said:
In your report or group header or footer, you can use an expression like:
=Sum(Abs(DateDiff("d",[Date1],[Date2]) <=30))/Count(*)

--
Duane Hookom
Microsoft Access MVP


Nick CWT said:
I have a date field = Job Readiness Assessment CG 1 and a date field = Date
Enrolled. I'm trying to create an expression in a report that indicates the
% of Job Readiness Assessments that were completed in 30 days or less from
date enrolled. I'm stuck :(
 
G

Guest

Inside the DateDiff() function, the earliest date should be first.

How do you want to count/handle null dates? You can use Nz([...cg...], [Date
Enrolled]) or Nz([...cg...], [Date Enrolled] + 100)
--
Duane Hookom
Microsoft Access MVP


Nick CWT said:
Thanks for your reply. As you suggested I'm using

=Sum(Abs(DateDiff("d",[Job Readiness Assessment CG 1],[Date
Enrolled])<=30))/Count(*)

in the footer of the report. But it seems to be counting all dates fields
that are not empty? It doesn't seem to be applying the <=30? Date enrolled
will never be Null but the CG's may be. Does that matter? I appreciate any
and all help.

Duane Hookom said:
In your report or group header or footer, you can use an expression like:
=Sum(Abs(DateDiff("d",[Date1],[Date2]) <=30))/Count(*)

--
Duane Hookom
Microsoft Access MVP


Nick CWT said:
I have a date field = Job Readiness Assessment CG 1 and a date field = Date
Enrolled. I'm trying to create an expression in a report that indicates the
% of Job Readiness Assessments that were completed in 30 days or less from
date enrolled. I'm stuck :(
 
G

Guest

I did not have the earlier date first, that fixed it. You're an MVP in my
book. Thanks a bunch!!

Duane Hookom said:
Inside the DateDiff() function, the earliest date should be first.

How do you want to count/handle null dates? You can use Nz([...cg...], [Date
Enrolled]) or Nz([...cg...], [Date Enrolled] + 100)
--
Duane Hookom
Microsoft Access MVP


Nick CWT said:
Thanks for your reply. As you suggested I'm using

=Sum(Abs(DateDiff("d",[Job Readiness Assessment CG 1],[Date
Enrolled])<=30))/Count(*)

in the footer of the report. But it seems to be counting all dates fields
that are not empty? It doesn't seem to be applying the <=30? Date enrolled
will never be Null but the CG's may be. Does that matter? I appreciate any
and all help.

Duane Hookom said:
In your report or group header or footer, you can use an expression like:
=Sum(Abs(DateDiff("d",[Date1],[Date2]) <=30))/Count(*)

--
Duane Hookom
Microsoft Access MVP


:

I have a date field = Job Readiness Assessment CG 1 and a date field = Date
Enrolled. I'm trying to create an expression in a report that indicates the
% of Job Readiness Assessments that were completed in 30 days or less from
date enrolled. I'm stuck :(
 

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