Results 1 to 7 of 7
  1. #1
    LadyLyke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    14

    Adding 24 hours to an initial start date on a continuing basis

    I have a database where I need to track days of service for each client. I thought if I had a column for initial date of service I could create another column that would add an additional day to the date in the initial date column on a 24 hour basis. I've tried using the formulas bar but I've only confused myself further. Any help would be greatly appreciated.



    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Do you want to calculate the difference between the initial date and current date?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    ??? What exactly are you trying to do in plain English??
    Typically if you are providing "service", you have a start date and some sort of contract/agreement; and in the agreement is the service end date. And always a provision to renew service for a fee.

    If you started service on Mar 1, it would seem that the time period between today's Date and Mar 1 would indicate the days of service.

  4. #4
    LadyLyke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    14
    Yes June7. And to orange not every company operates that way which is why we need we need it calculated. I thought a 24 hour increment would work but I can't figure out how. Although just adding a counter sounds like a much better idea.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    If you know the startDate, and you know "today", you can calculate the difference at any time for reporting/informing. No need to store the difference anywhere.

  6. #6
    LadyLyke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    14
    This is what I have in the Control Source Property Sheet

    =DateDiff([“d”],[Initial Date of Service],[Date],Now())

    I want the difference between the initial date of service and today to display but all that is displayed is #Name?

    Can you tell me what I'm doing wrong?

  7. #7
    LadyLyke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    14
    I figured it out. I did not need the Now()

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

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2012, 01:42 PM
  2. Replies: 4
    Last Post: 08-06-2012, 10:25 AM
  3. Replies: 15
    Last Post: 04-06-2012, 10:57 AM
  4. Adding employee hours done for each completed sale
    By crxftw in forum Database Design
    Replies: 2
    Last Post: 06-16-2011, 12:24 PM
  5. Replies: 1
    Last Post: 07-07-2010, 04:22 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