Hi all
I have a data entry form with a date on. I want the date once entered to carry forward until changed. I am using this VB code currently:
Private Sub Date_AfterUpdate()
If Not IsNull(Me.Date.Value) Then
Me.Date.DefaultValue = "#" & Me.Date.Value & "#"
End If
End Sub
This works however the date is reversed in the next record as in 22/01/13 becomes 13/01/22. I have changed the input mask on both the form and the table to no avail I have also tried creating an entirely fresh text box and still have an issue so maybe the prob is with the table or the code.
Any suggestions
Thanks
I have a data entry form with a date on. I want the date once entered to carry forward until changed. I am using this VB code currently:
Private Sub Date_AfterUpdate()
If Not IsNull(Me.Date.Value) Then
Me.Date.DefaultValue = "#" & Me.Date.Value & "#"
End If
End Sub
This works however the date is reversed in the next record as in 22/01/13 becomes 13/01/22. I have changed the input mask on both the form and the table to no avail I have also tried creating an entirely fresh text box and still have an issue so maybe the prob is with the table or the code.
Any suggestions
Thanks