Results 1 to 3 of 3
  1. #1
    CQCDave is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    47

    Setting a field based upon status of another field

    I' running access version 2013. I have a form with a field of NCRStatus which opens in the status of Open. When that NCRStatus is changed to Closed i want to populate the DateClosed field with current date. How am i able to do this.


    Thanks for the help!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can use the AfterUpdate event of the NCRStatus field to update the DateClosed field, i.e.
    Code:
    Private Sub NCRStatus_AfterUpdate()
    
        If Me.NCRStatus = "Closed" Then
            Me.DateClosed = Date
        End If
        
    End Sub

  3. #3
    CQCDave is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    47
    Thanks, that did it. Appreciate the help.

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

Similar Threads

  1. Replies: 7
    Last Post: 09-29-2014, 03:25 PM
  2. Replies: 3
    Last Post: 06-19-2014, 03:47 PM
  3. Replies: 1
    Last Post: 03-27-2014, 06:42 AM
  4. Replies: 14
    Last Post: 05-13-2013, 12:53 PM
  5. Replies: 1
    Last Post: 04-26-2013, 09: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