chriscardwell06
Registered User.
- Local time
- Yesterday, 19:33
- Joined
- Aug 18, 2011
- Messages
- 38
Let me start off by saying I am new to this so go easy on me. I have a form that I cannot get to act like I think it should I have a date (duedatetxt) that calculates (=DateAdd("w",14,[Approval Date])) off of an approval date (Approval date). Now I have a text box (text25) that I use as a status box and I want it to change based off the due date. It is just a quick status to say whether the item is "On Time" or "Late". I have tried several different versions of code that I have found online. This one to me should be dumbed down enough to work but it isn't. This should be really simple and is driving me nuts. Thanks in advance for any help.
Private Sub Form_Click()
If duedatetxt.Value < Date Then Text25.Value = "on time"
Else: If duedatetxt.ValidationRule > Date Then Text25.Value = "late"
End If
End Sub
Private Sub Form_Click()
If duedatetxt.Value < Date Then Text25.Value = "on time"
Else: If duedatetxt.ValidationRule > Date Then Text25.Value = "late"
End If
End Sub