Hi All
Situation 1
I import data from an AS400. The date format comes in with number format 20020706. Somewhere I have seen a query being used to convert this to a date format. The format that I would like to use is 06/07/2002.
Situation 2
I have another query that selects data based on a date range. The query reads the date from a form.
The criteria that I use is >=[forms]![frmSearch]![txtBegin] And <=[forms]![frmSearch]![txtEnd] .
Instead of using txtEnd as criteria, I would like it to be replaced with a statement that selects data from the previous 12 months.
Any sugestions
Thanks in advance
Hayton
Situation 1
I import data from an AS400. The date format comes in with number format 20020706. Somewhere I have seen a query being used to convert this to a date format. The format that I would like to use is 06/07/2002.
Situation 2
I have another query that selects data based on a date range. The query reads the date from a form.
The criteria that I use is >=[forms]![frmSearch]![txtBegin] And <=[forms]![frmSearch]![txtEnd] .
Instead of using txtEnd as criteria, I would like it to be replaced with a statement that selects data from the previous 12 months.
Any sugestions
Thanks in advance
Hayton