PC Review


Reply
Thread Tools Rate Thread

Creating report with date counts

 
 
Chipgiii
Guest
Posts: n/a
 
      10th Feb 2010
I need to create a weekly or monthly report (may need new query) that does
the following: A date is entered for each light in the Greenhouse that is
out. A second column is where the repair date is entered. If the repair
date is blank, the work is outstanding. The report would need to count the
number of blank repair dates for a given period (either week or month), and
divide that by the total number of lights in the greenhouse. This would give
me a weekly/monthly "lights out percentage."

Any ideas would be terrific, just remember I am a novice user - so simpler
is better!

--
Thanks,
Chip
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      10th Feb 2010
Try this with your table and field names --
SELECT Format([CheckDate], "mmmm yyyy") As Check_Date, (Sum(IIF([RepairDate]
Is Null, 1, 0)) / Count([LightNumber])) * 100 AS [lights out percentage]
FROM YourTable
GROUP BY Format([CheckDate], "mmmm yyyy")
ORDER BY Format([CheckDate], "yyyymm");

--
Build a little, test a little.


"Chipgiii" wrote:

> I need to create a weekly or monthly report (may need new query) that does
> the following: A date is entered for each light in the Greenhouse that is
> out. A second column is where the repair date is entered. If the repair
> date is blank, the work is outstanding. The report would need to count the
> number of blank repair dates for a given period (either week or month), and
> divide that by the total number of lights in the greenhouse. This would give
> me a weekly/monthly "lights out percentage."
>
> Any ideas would be terrific, just remember I am a novice user - so simpler
> is better!
>
> --
> Thanks,
> Chip

 
Reply With Quote
Reply

« hi | Query Criteria »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Creating a printed report containing multiple counts XPS35 Microsoft Access Reports 1 19th May 2010 02:47 PM
Creating a Date Range in a Query & Report =?Utf-8?B?cmljc2Vi?= Microsoft Access Reports 4 18th May 2007 04:36 AM
Creating A Report To Print By Date =?Utf-8?B?QnJpYW4=?= Microsoft Access Reports 2 16th Mar 2006 05:15 PM
Creating a label on a report that counts an aggregate total =?Utf-8?B?VHk=?= Microsoft Access Reports 1 17th Dec 2004 04:02 AM
Creating a Report with Date Restrictions Terry Microsoft Access Reports 1 23rd Mar 2004 07:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:31 AM.