Re: us date format
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Sat, 21 Jan 2006 15:29:22 -0600
Bob Wickham wrote:
>I have a form where the user enters a date in each record.
>In many records the date stays the same so I have written the following
>code that inserts the previous records value into the current record.
>
>Private Sub PaymentDate_AfterUpdate()
>
> Me![PaymentDate].DefaultValue = "#" & Me![PaymentDate] & "#"
>
>End Sub
>
>Works OK, except when the value is inserted it displays as US date mm/dd/yy.
>I'm typing dd/mm/yy in the first record
>I live in Australia and want it to appear as dd/mm/yy in the next record.
>
>I believe I need to convert the date to a number with CLng but I've
>tried all sorts of ways and cant get it to happen.
I think all you need to do is set the text box's Format
property to:
dd/mm/yy
--
Marsh
MVP [MS Access]
.
- Follow-Ups:
- Re: us date format
- From: Bob Wickham
- Re: us date format
- References:
- us date format
- From: Bob Wickham
- us date format
- Prev by Date: Re: help with sort button
- Next by Date: Re: Insert Error
- Previous by thread: us date format
- Next by thread: Re: us date format
- Index(es):