Results 1 to 2 of 2
  1. #1
    ase33592 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    1

    Auto update of date field


    Please help as I was unable to find the solution. I have a field that is a yes/no check box, when this field has a check mark in it, as in true I would like to automatically update a date field in the same record, with the date the box was checked, how can this be done. Thank you

  2. #2
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Set your After Update event with the VBA code below.

    Code:
    If Me.Yes/NoField Name Here = True Then
    Me.YourDateFieldNameHere = Date()
    Else: End If
    If you want to clear the date fill on the check box being false instead of "Else: End If", put

    Code:
    Else
    Me.YourDateFieldNameHere = Null
    End If

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

Similar Threads

  1. Replies: 6
    Last Post: 02-01-2013, 10:02 AM
  2. Replies: 7
    Last Post: 11-28-2012, 01:41 PM
  3. Auto populate date field in payment table
    By jeffrey.ccs in forum Access
    Replies: 4
    Last Post: 11-08-2012, 04:44 PM
  4. Replies: 3
    Last Post: 04-14-2010, 10:07 AM
  5. Replies: 1
    Last Post: 03-08-2009, 01:50 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