G
Guest
I'm using a query based on an imported table which uses two fields for date.
I do not control and cannot change the data format of the table before it
comes to me from another source.
One field [entrymo] uses the numerical value for the month 1=Jan and the
other [entryyr] uses the 4 digit year. The data spans more than one year.
I am trying to build a criteria which allows users to enter a range of
dates, but am not sure how to format it in a way which makes sense to a user.
If I use a "Between this and that".....criteria for each field I run into
trouble when searching between years. Trying to search between 1 2004 and 1
2005, I returned only records from 1 2004 and 1 2005, not the range.
I realize it is because the criteria is based on two different fields. In
effect I was asking the query to return [entrymo] records between 1 and 1 AND
[entryyr] records between 2004 and 2005.
This will become a real problem as data is populated for 2005. Any ideas
how to restructure the criteria?
I hope this is clear.
I do not control and cannot change the data format of the table before it
comes to me from another source.
One field [entrymo] uses the numerical value for the month 1=Jan and the
other [entryyr] uses the 4 digit year. The data spans more than one year.
I am trying to build a criteria which allows users to enter a range of
dates, but am not sure how to format it in a way which makes sense to a user.
If I use a "Between this and that".....criteria for each field I run into
trouble when searching between years. Trying to search between 1 2004 and 1
2005, I returned only records from 1 2004 and 1 2005, not the range.
I realize it is because the criteria is based on two different fields. In
effect I was asking the query to return [entrymo] records between 1 and 1 AND
[entryyr] records between 2004 and 2005.
This will become a real problem as data is populated for 2005. Any ideas
how to restructure the criteria?
I hope this is clear.