increase value of field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • didacticone
    Contributor
    • Oct 2008
    • 266

    #1

    increase value of field

    i have an unbound text box on a form with '0' entered in it. i also have another text box linked to my table. what i would like to is when the linked text box (dayoff) has a certain criteria entered (ie. Vacation) i would like my unbound text box (vacaused) to increase by 1. any ideas?
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    This will do it:
    Code:
    Private Sub DayOff_AfterUpdate()
     If Me.DayOff = "vacation" Then Me.vacaused = Me.vacaused + 1
    End Sub
    Linq ;0)>

    Comment

    Working...