Results 1 to 4 of 4
  1. #1
    AccessThomas is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    26

    Timestamp issue in beforeupdate()

    I am getting an update 3020 error when I have the following code enabled.

    Private Sub Form_BeforeUpdate(Cancel As Integer)
    Me![Timestamp] = Now()
    End Sub

    If any data is modified in the record the Timestamp updates to the current time.



    Thanks, for any help.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    What were you expecting?
    What exactly are you trying to accomplish?

  3. #3
    AccessThomas is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    26
    If anything is modified in the record then txtTimeStamp updates with the current time.

  4. #4
    AccessThomas is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    26
    I got it fixed, put in wrong place.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-19-2015, 05:22 PM
  2. BeforeUpdate: Could not update; currently locked.
    By v7davisa in forum Programming
    Replies: 3
    Last Post: 09-26-2014, 04:18 PM
  3. ODBC timestamp issue <<<< need help
    By BennyOng in forum Access
    Replies: 4
    Last Post: 08-04-2014, 07:26 AM
  4. Using the Form.BeforeUpdate property
    By Access_Novice in forum Programming
    Replies: 6
    Last Post: 01-01-2014, 08:45 PM
  5. Beforeupdate to early
    By R_Badger in forum Forms
    Replies: 3
    Last Post: 02-09-2012, 10:38 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