+ Reply to Thread
Results 1 to 5 of 5

Problem overdue dates

  1. #1
    Registered User
    Join Date
    12-03-2004
    Posts
    4

    Problem overdue dates

    hello guys,

    im trying to get an overview ( tracking system) to see all overdues
    but when I try the code somehow I get a mixture of overdue records and
    not overdue records
    Does anyone see the failure?
    thx
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Crombes,

    Past due can be flagged in 2 ways. (1) The year is earlier than this year, Or (2) The month is earlier than the current month.

    To test for these condition's change the IF statement in your loop to...

    If Year(Now()) > Year(Cells(r, 8)) OR Month(Cells(r, 8)) < Month(Now())
    Then Rows(r).Delete

    _________________________________________________________________

    Hope this helps,
    Leith Ross

  3. #3
    Registered User
    Join Date
    12-03-2004
    Posts
    4

    Unhappy

    Thanks leith,

    but this is not working , maybe some more info
    it is a tracking system for calibration of measurement tools
    an example: a vernier should be calibrated on 21/03/05
    but this is not happened so this date will not change untill
    the calibration is done .
    I would like to see all tools that overdue ( not calibrated
    compared to today's date )

    can you help me ?

    thx

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Crombes,

    I don't know how you have your data setup, but I would have the worksheet setup with at least 4 coulmns: Instrument, Last Cal., Next Cal. Due, Tech. It then becomes very easy to determine when the calibration was done last and due next. Can you post an example of how you data is arranged on the worksheet? There maybe a better approach to this problem.

    Thanks,
    Leith Ross

  5. #5
    Registered User
    Join Date
    12-03-2004
    Posts
    4

    Talking

    Quote Originally Posted by Leith Ross
    Hello Crombes,

    I don't know how you have your data setup, but I would have the worksheet setup with at least 4 coulmns: Instrument, Last Cal., Next Cal. Due, Tech. It then becomes very easy to determine when the calibration was done last and due next. Can you post an example of how you data is arranged on the worksheet? There maybe a better approach to this problem.

    Thanks,
    Leith Ross
    Hi Leith ,
    please find enclosed the zipped file
    i'm still working on this file , but i would take a copy of the "overzichtslijst" sheet
    and copy it on the "overduelijst"sheet and delete all OK calibrations
    Should you have any other brillant ideas for this file , please feel free
    Attached Files Attached Files

+ 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