Results 1 to 2 of 2

Thread: Date Help!!!

  1. #1
    Join Date
    Aug 2004
    Posts
    10

    Wink Unanswered: Date Help!!!

    I need to set my control source in a feild to calculate the years that someone has worked for a company. I have the equation as:

    =DateDiff("d", [OrderDate], [ShippedDate])

    this gives me the time in days I need it in years can someone help me here please.....this is the final step to this database and I would greatly appreciate some help....thanks in advance

  2. #2
    Join Date
    Jul 2004
    Location
    Southampton, UK
    Posts
    368
    Quote Originally Posted by Mandee25
    I need to set my control source in a feild to calculate the years that someone has worked for a company....
    This will give you the number of full years worked:

    =Cint(DateDiff("d", [OrderDate], [ShippedDate])/365))

    You may have to consider how you handle leap years

    HTH
    Chris

Posting Permissions

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