Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    BECCLES, Suffolk, England
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto updating date field (2000SR1)

    A repeated query because I've lost the original data: on a form I have a record date field that I want to be updated with today's date when the form is changed... help please (and I promise to copy and save the data somewhere else this time <img src=/S/smile.gif border=0 alt=smile width=15 height=15> )
    <IMG SRC=http://www.wopr.com/w3tuserpics/StephenElms_sig.jpg> Didn't think that I made my first post here on 5th February 2001...!

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Auto updating date field (2000SR1)

    >>I have a record date field that I want to be updated with today's date when the form is changed.<<

    In your form's BeforeUpdate Event, just put in code like this:

    txtLastUpdated = Date( )

    Use Date( ) for just the date, use Now( ) if you want date and time.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  3. #3
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    BECCLES, Suffolk, England
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Auto updating date field (2000SR1)

    Many thanks for that Mark - excellent help.
    <IMG SRC=http://www.wopr.com/w3tuserpics/StephenElms_sig.jpg> Didn't think that I made my first post here on 5th February 2001...!

Posting Permissions

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