A
Al
I have a text field that has 2 digit year format like (07,06,05) I want to
filter for this year and last year. I need to use "Date()" for generic
criteria due to the fact that next year will be 08. I need the query to
always filter for the current year and the year before without having to go
to the query design to change the year digits.
I used the following:Format(Date(),"yy") Or
Format(DatePart("yyyy",Date()-1),"yy") but this is returning (07 and 05) what
happened to 06? can someone help.
the data is imported from somewhere else where the format is like that
(07,06, etc) therefore access assigns a text field for this data. I would
like to work under this conditions unless it is impossible to achieve what I
need then I will have to change the field to data/time and change the date
format.
thanks
Al
filter for this year and last year. I need to use "Date()" for generic
criteria due to the fact that next year will be 08. I need the query to
always filter for the current year and the year before without having to go
to the query design to change the year digits.
I used the following:Format(Date(),"yy") Or
Format(DatePart("yyyy",Date()-1),"yy") but this is returning (07 and 05) what
happened to 06? can someone help.
the data is imported from somewhere else where the format is like that
(07,06, etc) therefore access assigns a text field for this data. I would
like to work under this conditions unless it is impossible to achieve what I
need then I will have to change the field to data/time and change the date
format.
thanks
Al