Results 1 to 3 of 3
  1. #1
    Polarbilly is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    13

    Unhappy Date Calculations

    I'm new to Access and having problems using dates in calculations...


    I want to use these in a form :

    Date Field: Date()
    Date Of test: "Date Field"
    Date of Next Test:"Date of Test" + 180 days
    Days Overdue: Date() -"Date of Next Test"


    I've tried to work it out using expressions, but don't think I'm grasping the syntax....I come from the simple world of the Approach database where you can create calculated fields in the table...

    Any help, guidelines, clues greatly appreciated

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well you need to preceed most of those always with an = sign

    and you need to use brackets [ ] around names that have a space rather than quotes " "

    +180 is ok, but then look up the DateAdd method and copy that syntax - as you will need that too.

    Hope it helps.

  3. #3
    Polarbilly is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    13

    Date Calculations

    Quote Originally Posted by NTC View Post
    well you need to preceed most of those always with an = sign

    and you need to use brackets [ ] around names that have a space rather than quotes " "

    +180 is ok, but then look up the DateAdd method and copy that syntax - as you will need that too.

    Hope it helps.
    Thanks for the info... DateAdd is working but I can't get the syntax to work

    to show the number of days overdue by using =([Retest Date]-[Cert Date])
    Can you help???

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

Similar Threads

  1. Calculations in a form
    By elmere in forum Forms
    Replies: 3
    Last Post: 04-27-2011, 04:11 PM
  2. time calculations
    By venu in forum Database Design
    Replies: 1
    Last Post: 10-23-2010, 12:36 PM
  3. Date calculations
    By NOTLguy in forum Access
    Replies: 10
    Last Post: 10-09-2010, 06:41 AM
  4. Calculations in reports
    By bvanscoy678 in forum Reports
    Replies: 4
    Last Post: 08-05-2010, 06:27 AM
  5. Time calculations
    By jimandann in forum Programming
    Replies: 2
    Last Post: 02-18-2009, 12:27 AM

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