nubianqueen
Technical User
I've looked at this issue over and over again, but I don't see it, maybe someone can help me.
I have a date field on my form (FieldA) with this format
"mmm-yyyy" and another date field (FieldB) with the same format. I input this number- 05/01 and it turns to "May-2003" or I enter 5/02 and I still get "May-2003. But on the other hand if I enter 5/2001, everything is all good. I was trying to keep the keystrokes for the user to a minimum. So is there a way for the user to enter 5/01 and value defaults to 5/2001?
I have some code attached and I not sure if it could be part of the problem as well. This is what it looks like:
Private Sub FieldA_AfterUpdate()
If IsNull([FieldA]) Then
Else
TargetDate = DateAdd("m", "12", [FieldA])
End If
End Sub
Appreciate any help. Thanks
I have a date field on my form (FieldA) with this format
"mmm-yyyy" and another date field (FieldB) with the same format. I input this number- 05/01 and it turns to "May-2003" or I enter 5/02 and I still get "May-2003. But on the other hand if I enter 5/2001, everything is all good. I was trying to keep the keystrokes for the user to a minimum. So is there a way for the user to enter 5/01 and value defaults to 5/2001?
I have some code attached and I not sure if it could be part of the problem as well. This is what it looks like:
Private Sub FieldA_AfterUpdate()
If IsNull([FieldA]) Then
Else
TargetDate = DateAdd("m", "12", [FieldA])
End If
End Sub
Appreciate any help. Thanks