G
Guest
What is my mistake here. I have a number field that I want a number added to.
I want to know which day of an event a specific date is, i.e. day 1 or day
10. I set the default valve of the field to 0 because if I didn't the true
part of the following statement didn't work. What I can't get it to do is go
from one to 2 for the second day. How should I be handling the false part of
this statment? Thank you.
Private Sub txtDate_AfterUpdate()
Dim NewDay As Variant
NewDay = IIf(Nz(txtDay), 1, ((txtDay) + 1))
Me.txtDay = NewDay
End Sub
Fay
I want to know which day of an event a specific date is, i.e. day 1 or day
10. I set the default valve of the field to 0 because if I didn't the true
part of the following statement didn't work. What I can't get it to do is go
from one to 2 for the second day. How should I be handling the false part of
this statment? Thank you.
Private Sub txtDate_AfterUpdate()
Dim NewDay As Variant
NewDay = IIf(Nz(txtDay), 1, ((txtDay) + 1))
Me.txtDay = NewDay
End Sub
Fay