Re: Date Updated Column

From: Duane Hookom (duanehookom_at_NO_SPAMhotmail.com)
Date: 03/08/04


Date: Sun, 7 Mar 2004 19:14:43 -0600

You can use code in the before update event of a form to set the values of
the fields.

-- 
Duane Hookom
MS Access MVP
"David F" <davef@nksj.ru> wrote in message
news:%23EQhNBKBEHA.1964@TK2MSFTNGP11.phx.gbl...
> In SQL Server I can use a trigger to populate a "date created" and "date
> updated" field.
>
> For example, in my orders table I have a "date created" and "date updated"
> field. When a row is added to this table, both of these fields are updated
> by the trigger with the INSERT date.  Later, if the row is modified, the
> "date updated" field is modified with the UPDATE date.
>
> This gives me a nice audit trail for the activity in the table.
>
> Is there any way to accomplish this in Access?
>
> Thanks
>
>


Relevant Pages

  • Re: Default value of one field in access to contents of another fi
    ... I don't think you can accomplish this in a table. ... update event of a text box on a form to set the value of another text box: ... MS Access MVP ... > the first time I have used this service. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Making test box visible
    ... "John W. Vinson" wrote: ... The above code goes in the After update event for the combo ... Replace NameOfCombo and NameOfTextbox with the real names. ... Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia ...
    (microsoft.public.access.forms)
  • Re: combo box programming
    ... "Ken Snell " wrote: ... <MS ACCESS MVP> ... However, after updating the ... combo box update event to make it go away. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Cascading Combo help
    ... In the After Update event of the 1st combo I have: ... If you put a breakpoint in the event procedure, does execution hit that breakpoint when you choose a value in the combo box? ... This isn't Access 2007 with VBA code disabled, ... Dirk Goldgar, MS Access MVP ...
    (microsoft.public.access.formscoding)
  • RE: use of host_name( ) in triggers
    ... Dear Ida, ... >I need to find out who is making scrupulous changes in one ... What I did was to create a trigger ... >for an update event for the affected table. ...
    (microsoft.public.sqlserver.security)