"Bernard Van Craeyenest via AccessMonster.com"
<(E-Mail Removed)> wrote in
news:(E-Mail Removed):
>
> How can I change the regional settings of Windows 2000 with VBA. I
> want to change the settings for the date (DD/MM/JJJJ) and the hour
> (HH:MM:SS.
>
>
That is a really, really, horrid thing to do to anybody's machine. There
are windows API hooks to do it but I really don't recommend it. People
set their machines up for a reason.
If you want to control the display of dates on a form or report, use the
Format property of the control. That is what it is for. You can indeed
use a format like "dd/mm/yyyy" there; you do not have to use built in
"Long Date" etc.
Hope that helps
Tim F
|