H
Hans Callesen
Hi
I have a derived field from 2 controls ("22 01 2003"[from a date/Time column
of format Longdate] + "21:41"[from a date/Time column of format ShortTime] =
"22 01 2003 21:41"[). The derived field is stored by a variable (VarY) of
type Variant.
I use VarY in a Dlookup statement where VarY is between 2 values in a lookup
table. Both fields are Date/Time type with format General date (e.g.:
"22/01/2003 09:00:00" and "22/01/2003 18:59:00")).
This works 100% where the date format is obvious,as above [dd/MM/yyyy] BUT
for a less obvious date like "05/10/2003 09:00:00" (Read: 05 October 2003
09:00) the date comparison assumes the format MM/dd/yyyy and returns the
incorrect value.
The machine regional settings are set to dd/MM/yyyy for both short & long
date.
I've tried this in a query - same results from same table. Any tips here
please?
thks
I have a derived field from 2 controls ("22 01 2003"[from a date/Time column
of format Longdate] + "21:41"[from a date/Time column of format ShortTime] =
"22 01 2003 21:41"[). The derived field is stored by a variable (VarY) of
type Variant.
I use VarY in a Dlookup statement where VarY is between 2 values in a lookup
table. Both fields are Date/Time type with format General date (e.g.:
"22/01/2003 09:00:00" and "22/01/2003 18:59:00")).
This works 100% where the date format is obvious,as above [dd/MM/yyyy] BUT
for a less obvious date like "05/10/2003 09:00:00" (Read: 05 October 2003
09:00) the date comparison assumes the format MM/dd/yyyy and returns the
incorrect value.
The machine regional settings are set to dd/MM/yyyy for both short & long
date.
I've tried this in a query - same results from same table. Any tips here
please?
thks