I'm comparing two dates and I know I'm getting a mismatch between UK and US date formats - it works fine after the 12th of the month!
I can't work out the syntax to force the format
strDate1 is in "yyyy-mm-dd" format.
I've tried everything I can think of to format HolDate similarly, but I'm missing something.
Rosie
"Never express yourself more clearly than you think" (Niels Bohr)
I can't work out the syntax to force the format
Code:
varX = DLookup("[HolDate]", "PublicHolidays", "[HolDate] = #" & strDate1 & "#")
strDate1 is in "yyyy-mm-dd" format.
I've tried everything I can think of to format HolDate similarly, but I'm missing something.
Rosie
"Never express yourself more clearly than you think" (Niels Bohr)