Results 1 to 6 of 6
  1. #1
    Burnsie is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    16

    DateAdd

    Hi everyone.



    First time post, so please be gentle with me.

    I must admit, I'm not too hot on Access...

    I want to create a database where certain fields are populated based on data in other fields.

    More specifically, I have one filed (Risk Assessment) that is populated on the day a new record is opened (using the "=Date()" term in the "Default Value" option in the table design view).

    What i'm looking for is a form where two other fields "Reassessment date 1" and "Reassessment date 2" are automatically calculated 90 days and 180 days after the Risk Assessment date.

    I have attempted to follow a few YouTubes, but always get an error or no date appears in my new field.s

    Any suggestions?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I have attempted to follow a few YouTubes, but always get an error or no date appears in my new field.s
    all we can do is do what the youtube does - provide an example. Suggest you copy and paste your attempt which doesn't work with the error you get so we can advise you where you are going wrong.

  3. #3
    Burnsie is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    16
    Hi.

    thanks for your reply.

    I will C+P what I can.

    You can't attache a file to replies, no?

    Edit, you can...hang on

  4. #4
    Join Date
    Apr 2017
    Posts
    1,681
    Formulas are simple part.

    Code:
    AssessmentDate + 90
    and
    Code:
    AssessmentDate + 180
    But the rest is more complicated.
    1. Where you need this calculation be made - in some control (a formula) or in VBA procedure/Form or control event (a VBA expression)
    2. From where you need to read AccessmentDate (lookup by some other parameter from table/a control or linked field on same form/a control or source table field from parent form).

    To give some help there isn't enough information.

  5. #5
    Burnsie is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    16
    hmmm...the upload option doesn't seem to work.... nothing happens.

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    try zipping the file first - but it should not need a file, just a copy and paste of the code.

    If you are sending a db file, strip out all unrelated tables/queries forms etc, remove any autoexec you may have, then compact and repair before zipping - and provide a brief description of how to get the problem (form name/control name)

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

Similar Threads

  1. DateAdd
    By Bentley in forum Queries
    Replies: 3
    Last Post: 01-23-2017, 05:20 PM
  2. the DateAdd
    By azhar2006 in forum Queries
    Replies: 1
    Last Post: 04-20-2014, 03:18 PM
  3. DateAdd Function
    By jschlapi in forum Forms
    Replies: 4
    Last Post: 10-23-2013, 01:36 PM
  4. DateAdd()
    By cbrsix in forum Programming
    Replies: 3
    Last Post: 11-22-2011, 02:20 PM
  5. dateadd help
    By dubsdj in forum Queries
    Replies: 3
    Last Post: 03-03-2011, 07: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