Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2023
    Posts
    2

    Date auto populate with changing construction stages?


    I am trying to create a cell that auto populates as construction dates are added and updated. So if stage one has a date then the prjoected date would be stage one date plus 126 days. If stage 2 is not null, then the projected would be stage 2 plus 119 days, and so on. I cant even get a date to pull for stage one

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in a query or the form:
    =DateAdd("d",126,[Stage1Date])

    =DateAdd("d",119,[Stage2Date])

    the Stage1Date should be automatically filled in the form: default = Date()
    when user enters the data.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,945
    I would put those date periods into a config table and look them up, just in case your date period can change. That way you just change data and not have to recode.
    For days you can just do simple math and add the days

    ? date +10
    13/10/2023

    However if you can always calculate them, then they should not be stored, unless the range might change?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    Join Date
    Oct 2023
    Posts
    2
    Thank you! I have it pulling in a date, but they all say 12/30. Here is the expression so far.

    =DateAdd("d",126, [ProductionQry2 Closings].[Projected Start Date])=DateAdd("d",119, [ProductionQry2 Closings].[Stage 302 Date - Frame Complete])

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

Similar Threads

  1. Replies: 2
    Last Post: 09-29-2019, 09:36 PM
  2. Replies: 2
    Last Post: 01-27-2015, 06:12 PM
  3. Replies: 1
    Last Post: 08-05-2014, 12:40 PM
  4. Auto populate text from date
    By losingmymind in forum Access
    Replies: 4
    Last Post: 05-30-2013, 10:39 AM
  5. Replies: 7
    Last Post: 11-28-2012, 01:41 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