Results 1 to 3 of 3
  1. #1
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71

    Converting a date to length of time


    I’m creating a database for work and in the initial client table I have dates of when the company/person became a client. Using these dates (or via other methods?) is there a way to calculate in days or months and days, the length of time they have been a client within the table or within a query. Using Access 2007.

  2. #2
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184
    To calculate the difference between 2 dates, so client registration to now?
    I would use Datediff in a query:

    Code:
    
    selectDATEDIFF(day, registration, 10/11/2010)
    
    That should give you the difference in days, but you can change it from days to months etc.
    Note: you might have to use 'dd' instead of 'day'

    Hope thats what you wanted.

    Good luck


    Rixxe

  3. #3
    Duncan is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    71
    Many thanks will give it a go

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

Similar Threads

  1. Date and Time tables
    By Pilotwings_64 in forum Database Design
    Replies: 5
    Last Post: 10-29-2010, 02:44 PM
  2. Replies: 2
    Last Post: 07-03-2010, 08:45 PM
  3. Date + Time = Date Time
    By TundraMonkey in forum Access
    Replies: 3
    Last Post: 07-02-2009, 09:30 PM
  4. Date and time serch
    By gayano in forum Programming
    Replies: 1
    Last Post: 08-31-2007, 03:49 AM
  5. Access Date/Time....I need a "generic" date.
    By beastmaster in forum Access
    Replies: 2
    Last Post: 12-29-2005, 12:55 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