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

    Time/User Stamp for Changed Record


    Hello,

    looking for some assistance with getting the info for the user when a record is changed

    Using an event in Before Update on the form

    Private Sub Form_BeforeUpdate(Cancel As Integer)
    'Information for who changed record

    Me.CTS = Now()
    Me.CTSUser = Environ("UserName")

    End Sub

    However I am getting a compile error 'Method or Data Not Found' with the Me.CTSUer and not for Me.CTS

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Are the "CTS" and "CTSUser" fields placed anywhere on your Form? If not, then they wouldn't be part of the "Me" collection.
    Note, if you do not want users seeing/editing those fields, you can add them to the Form, but make it so those fields are not Visible (or lock them).

  3. #3
    dweekley is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    52
    ugh...thank you much. That was it.

    David

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

Similar Threads

  1. Stamp date, time and user?
    By ricanos in forum Modules
    Replies: 1
    Last Post: 04-06-2016, 08:41 AM
  2. Replies: 2
    Last Post: 11-25-2014, 09:21 AM
  3. Replies: 3
    Last Post: 12-10-2012, 05:14 PM
  4. Date Stamp when a field is changed
    By winterh in forum Access
    Replies: 1
    Last Post: 04-25-2012, 07:27 AM
  5. Replies: 4
    Last Post: 07-22-2011, 12:52 PM

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