Results 1 to 5 of 5
  1. #1
    TLCTech is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Posts
    26

    calculating a field in a query to add 16 days to the last departure date record


    I need to be able to see when a customer can come back. They need to not come back for 16 days after their last date that they were in.

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    If you add a number to any date, it will add those many days.

    #3/8/2016# + 16 = #3/24/2016#

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    They need to not come back for 16 days after their last date that they were in.
    ??Need not ===> must not

    EarliestNewdate = DateAdd("d",16,LastVisitDate)

  4. #4
    TLCTech is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Posts
    26
    would this be put in the design view of the query. In the criteria box for the new entry of EarliestNewDate

  5. #5
    TLCTech is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Posts
    26

    Calculation for a date that adds 16 days to the last departure date in the table

    Here is my database that I need help with. I would like to have a query that checks for the next available date that the camper can come back in. It could be put in the qryLicenseSearch if possible to keep from having to run several searches. I have a switchboard made to run the different forms and queries that I have made.



    Database Spreadsheets.zip

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

Similar Threads

  1. Replies: 20
    Last Post: 01-13-2015, 02:23 PM
  2. Replies: 1
    Last Post: 07-02-2014, 08:48 AM
  3. Replies: 3
    Last Post: 10-06-2013, 12:01 PM
  4. Replies: 1
    Last Post: 02-12-2013, 03:48 AM
  5. Calculating days & Time
    By siapliw in forum Forms
    Replies: 5
    Last Post: 09-11-2012, 11:44 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