D
Dave
I'm carrying forward a date in a data entry form by using an after-update
procedure to set the default value.
Private Sub txtRecDate_AfterUpdate()
If Not IsNull(Me.txtRecDate.Value) then
txtRecDate.DefaultValue = "#" & Me.txtRecDate & "#"
End If
End Sub
But as is pointed out in one of Allen Browne's tips, VBA date setting always
assumes US format.
So I enter e.g. 2/7/08, which stores as 2/07/2008, but the next record comes
up as 7/02/2008.
There is some sample code to use an SQL statement to force all dates into US
format on Allen's website, but I'm wondering if I can easily incorporate
some code into the above subroutine to force the carried forward date into
Aus format.
Dave Oakley
procedure to set the default value.
Private Sub txtRecDate_AfterUpdate()
If Not IsNull(Me.txtRecDate.Value) then
txtRecDate.DefaultValue = "#" & Me.txtRecDate & "#"
End If
End Sub
But as is pointed out in one of Allen Browne's tips, VBA date setting always
assumes US format.
So I enter e.g. 2/7/08, which stores as 2/07/2008, but the next record comes
up as 7/02/2008.
There is some sample code to use an SQL statement to force all dates into US
format on Allen's website, but I'm wondering if I can easily incorporate
some code into the above subroutine to force the carried forward date into
Aus format.
Dave Oakley