Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Update Field On A Form

Discussion in 'Information Technology' started by Matt W., Nov 11, 2005.

Tags:
  1. Matt W.

    Matt W.
    Expand Collapse
    Guest

    I want to have a field on my form that automatically puts the date and time
    the data in any other field on the form was last updated. Any help is
    appreciated. Thanks
     
  2. Loading...

    Similar Threads Forum Date
    Self Update On The Gurdwara Blogs Apr 3, 2017
    Sikh News BREAKING: Young Sikh Shot Dead In Jalalabad, Afghanistan . - Sikh24 News & Updates Breaking News Oct 2, 2016
    Update Blogs Oct 16, 2015
    Update Wikipedia Enteries On Sikh Socio-Political Topics Breaking News Jul 19, 2015
    Pacific Oil Slicks Spotted In Search For Missing Malaysia Airlines Plane (Live Updates) Breaking News Mar 8, 2014

  3. OP
    tina

    tina
    Expand Collapse
    Guest

    to do that, you need to store the "last updated" date/time in a field in the
    form's underlying table. remember that data is not stored in forms - it's
    stored in tables, and displayed in forms.

    you can add a field to the table, i'll call it ModifiedDate, with data type
    Date/Time. if your form is bound to a query or SQL statement (rather than
    directly to the table), then make sure you add the ModifiedDate field to the
    RecordSource. add a control to the form, bound to field ModifiedDate, and
    give it the same name "ModifiedDate". in the *form's* BeforeUpdate event
    procedure, add the following code, as

    Me!ModifiedDate = Now

    if you don't know how to create an event procedure, see the illustrated
    instructions at http://home.att.net/~california.db/downloads.html (scrolling
    down to the CreateEventProcedure.pdf link).

    hth


    "Matt W." <MattW@discussions.microsoft.com> wrote in message
    news:6D228BA0-19B1-42BA-A130-9B065EEAB5B4@microsoft.com...
    > I want to have a field on my form that automatically puts the date and

    time
    > the data in any other field on the form was last updated. Any help is
    > appreciated. Thanks
     
Since you're here... we have a small favor to ask...     Become a Supporter      ::     Make a Contribution     


Share This Page