I have 2 fields on a form that I need to display month and year of a Credit card expiration date. I currently have the fields as number format. I need the fields to be displayed (and also stored if there is a difference) in the format of MM and YY, meaning the leading zeors in January (01), or the year 2009 (09) are displayed. I tried using a custom input mask; did not work, then I tried the format function and also didn't work.
Private Sub ExpireYR_AfterUpdate()
Me.ExpireYR = Format(Me.ExpireYR, "0000")
End Sub
Changing the field to a text format DID work, but I cannot have that, due to a mismatch in field types in an update query needed later on.
Any sugestions, or am I using the format function wrong?
Private Sub ExpireYR_AfterUpdate()
Me.ExpireYR = Format(Me.ExpireYR, "0000")
End Sub
Changing the field to a text format DID work, but I cannot have that, due to a mismatch in field types in an update query needed later on.
Any sugestions, or am I using the format function wrong?