Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Sep 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quick AutoUpdate Code (ACCESS 2K SR-1)

    I need a quick code to place 'today's date' in a date field when a person finishes updating a record.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Quick AutoUpdate Code (ACCESS 2K SR-1)

    You can use the BeforeUpdate event of the form to do this:

    Private Sub Form_BeforeUpdate(Cancel As Integer)
    Me.[LastUpdated] = Date
    End Sub

    Replace LastUpdated by the name of your date field.

    Note: if you just want to place today's date in a field interactively, press Ctrl+; (semicolon.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •