Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Access: auto insert date

  • 19-04-2005 12:37PM
    #1
    Closed Accounts Posts: 959 ✭✭✭


    Hi, I'm trying to insert a date automatically depending on the contents in another field.
    ie. I have a combo box ([Status]) with the choice of "OPEN" or "CLOSED", defaulting to "OPEN". My date field ([DateClosed]) has the following
    IIf([Status]="CLOSED",Date()).
    This works and inserts the date when "CLOSED" is selected, but the dateupdates the following day (today it will show 19/4/05, tomorrow 20/4/05 and so on).

    Is there any way I can lock this value? I have another date field ([LogDate]) where the default value is Date(). This behaves correctly in that the date won't change each day.

    Thanks, I know it's probably simple but I'm going round the houses here.


Advertisement