Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2010
    Posts
    2

    Using the date to determine if something was late.


    I am an extremely beginner Access user. I am not familiar with most terms or functions of Access. Please keep that in mind when answering this question. I want to create a query/report to show when someone submitted a report late. I have a field called "Submitted Date". I want to be able to automatically pull the names of the people that submitted late based on a specific date. For instance, if the deadline was 3/1/10, I want the query/report to show the name of the organization followed by either "On-Time" or "Late". Please tell me the simplest solution to this. I've read around and the answers are all too techy.

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    I assume you have a table to store the reports, let's call it tblreports which has fields like:
    repID (Primary key)
    repName
    repDueDate

    a table with the names of the people, let's call it tblPersons, with fields as
    prsID (primary key)
    prsFirstName
    prsLastName
    ...

    and a table wich joins the two: let's call it tblPersonsReports, with fields as
    pprID (primary key)
    prReport (foreign key to tblreports.rptID)
    prPerson (foreign key to tblPersons)
    prSubmittedDate

    Then you can create a query as:


    SELECT tblReports.rptName,
    tblPersons.prsFirstName,
    tblPersons.prsLastName,
    tblReports.rptDueDate,
    tblPersonsreports.prSubmittedDate,
    IIf([prSubmittedDate]<=[rptDueDate],"In time","To late") AS fldHandedIn
    FROM tblPersons INNER JOIN (tblReports INNER JOIN tblPersonsreports ON tblReports.rptID = tblPersonsreports.prreport) ON tblPersons.prsID = tblPersonsreports.prperson;

  3. #3
    Join Date
    Nov 2010
    Posts
    2

    Simpler please

    I really, really am a very beginner user. So I need things to be described in excrutiating detail. Meanwhile, I don't have any tables linked to anything. I have one table with all of my information in it (2010Q1). The field for the organization name is "Allocatee". The field for the date they submitted is "Submitted".

    I would, however, like to link the tables for each quarter (2010Q2, 2010Q3, etc.) on a report at the end to show who was late each quarter.

    Thank you for any help you can give.

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    I really think you should take some time to learn about database design and the basic things of working with Acces before you proceed. This really, really will save you a lot of time and trouble later on.

    succes
    NG

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

Similar Threads

  1. Late fees based on due date
    By CoachBarker in forum Queries
    Replies: 1
    Last Post: 11-01-2010, 08:31 AM
  2. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  3. Replies: 9
    Last Post: 03-19-2010, 10:37 AM
  4. How do I determine a SQL query result?
    By Trainman in forum Database Design
    Replies: 1
    Last Post: 10-15-2009, 04:49 AM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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