|
|
Question : Access Query - how to manipulate date in format yyyymm
|
|
Hello,
I'd be grateful if anyone can help me with the following.
I have a table with a field that contains a date in the format yyyymm, it is assumed that this date is always the 15th of the month, for example 200306 means June 15 2003.
I need to only select data where this date is more than two months old.
Can anyone advise please?
I suspect this is an easy question if you know how.
Thanks
David.
|
Answer : Access Query - how to manipulate date in format yyyymm
|
|
I guess hhammash solution will not work, since the field you are testing on is a String field, not a date field.
I think this will work.
select * from table where field & "15" < format(Date()-60, "YYYYMMDD")
|
|
|
|
|