+ Reply to Thread
Results 1 to 2 of 2

adding to a date to show an end date

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    adding to a date to show an end date

    Hello,

    I'm relatively familiar with Access, but have not used it in a long time. I am now setting up a new database which tracks employee discipline. My company has the following set of rules:

    If an employee has more than two occurences of calling in sick or being late in a 30 day period, the employee receives a letter.

    After 60 days of having perfect attendance, the letter level is reduced by one.

    After 90 days, the letter is no longer active, not matter what.

    In this database table, I have one cell that shows when the last letter was issued in 1 of 3 categories. In the next, I want it to show when that letter would no longer be in effect (going by the 90 days later rule). In essence, if a letter would be issued today, that date would be entered into the 5th cell, and in the 6th it would show the date 90 days from today, and highlight it yellow.

    Additionally, I would like the 4th cell to count cells 5, 7, 9, and 11. If they have a date in them, it should count each one, giving me a total number of active letters.

    So, this is what I'm looking for. I'm sure it's pretty elementary, and at one point, I would like to imagine I knew this. But I haven't touched access in 4 years!

    Thanks for any help.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: adding to a date to show an end date

    If you would please elaborate; you say you're doing this in Access, but your description would suggest Excel.

    Generally, you would not store a calculated field in a table, nor would you add colour to it. This would be more typical for a form or report (or an Excel spreadsheet). Are you referring to a form or report instead of a table?

    Without seeing your table layout, the "cell" references you mention are somewhat meaningless. As a guess, your table should only require four fields:

    SentLetterID (PK)
    EmployeeID (FK)
    LetterReason
    LetterDate

    since you could query this table to determine the dates of the letters within the last 90 days to calculate how many are currently in effect for each employee. If this is incorrect, would you please post a sample table layout?

    Also, would you please provide examples of the "categories"?

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1