Results 1 to 3 of 3
  1. #1
    dweekley is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    52

    Date Time stamp for new record

    I am using the following for when a record is changed on the before update event.

    'Information for who changed record
    Me.CTS = Now()
    Me.CTSuser = Environ("UserName")

    What event would be used for an entry (new record)? I have tried before Insert, be doesn't seem to be the right one.

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Before Insert should put the values in when you type the first character in a new record so that should work.

    You could put those in the Default values for those fields for new records. Then when they are changed you would have it updated by the Before Update part.

    Another way is in the AfterUpdate of another field on your form, set those values when that field gets updated. Needs to be a required field that has to have a value.

  3. #3
    dweekley is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    52
    Thank you. Reading the definition got me thinking.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Date and Time Stamp Question
    By NightWalker in forum Programming
    Replies: 12
    Last Post: 06-21-2016, 06:29 AM
  2. Stamp date, time and user?
    By ricanos in forum Modules
    Replies: 1
    Last Post: 04-06-2016, 08:41 AM
  3. Replies: 1
    Last Post: 04-01-2015, 01:29 AM
  4. Replies: 3
    Last Post: 12-10-2012, 05:14 PM
  5. Date and Time Stamp
    By zoooza84 in forum Access
    Replies: 2
    Last Post: 08-06-2011, 04:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums