Results 1 to 2 of 2
  1. #1
    mavisyew is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Aug 2014
    Posts
    34

    Case Aging report

    Hi All,



    I am creating a Case Aging report.
    In my report, i have the below fields.

    1. CaseID
    2. Priority
    3. Type
    4. Status
    5. 0-1 day
    6. 2-5 days
    7. 6-10 days
    8. 11-20 days
    9 >20 days

    My query as show below.

    SELECT TBLCaseDetail.CaseID, TBLCaseDetail.Status, TBLCaseDetail.Priority, TBLCaseDetail.Type, TBLCaseDetail.ReportedDate, DateDiff('d',[ReportedDate],Now()+1) AS NumberOfDays
    FROM TBLCaseDetail
    WHERE (((TBLCaseDetail.Status)<>"Resolved"));

    My Query Select all the cases which is not "Resolved" and count the number of days from Reported date till now.

    How can i show a mark if the number of days follow within the group?

    Sample:

    CaseId Priority Type Status 0-1 Day 2-5 Days 6-10 Days 11-20 Days > 20 Days
    14-00001 Major Aircon Pending X
    14-00006 Minor Toilet New X
    14-00010 Major Flooring Pending X
    14-00020 Major Lighting Pending X


    How can i have a report something like that?

    Thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Through a series of calculated fields in your query.

    For example, for the 6-10 one, it might look something like:
    Code:
    Check6_10: IIF((DateDiff('d',[ReportedDate],Now()+1) >= 6) AND (DateDiff('d',[ReportedDate],Now()+1) <= 10),"X","")

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Designing A/R aging Form
    By Ray67 in forum Database Design
    Replies: 22
    Last Post: 08-21-2014, 06:07 PM
  2. Case for in case field corrupt
    By Ruegen in forum Forms
    Replies: 9
    Last Post: 08-03-2014, 07:56 PM
  3. Replies: 5
    Last Post: 10-23-2012, 03:55 PM
  4. Aging buckets Access 2003
    By bootster in forum Queries
    Replies: 1
    Last Post: 04-06-2010, 01:11 PM
  5. Aging A/P function
    By nim73 in forum Programming
    Replies: 0
    Last Post: 05-07-2009, 01:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums