I'm trying to force yesterday's date into a query criteria. My goal is
to use the output as
an external data source for an excel pivot table. Does anyone know
how, in Access, I can get yesterday's date? My data is formatted
yyyymmdd.
Where [DateField] = Date()-1
The actual date format is irrelevant.
I think it is! Dutch date format starts with the day. If an expression
is not calculated into a date somewhere in the background, "-1" will
seldom put you yesterday. I could write today as 290104 (I see that
happen! Yes I do! People act funny!).
I pledge toward using the Date/Time format for a date field anyway.