In the query feeding the report, set the two controls on the form as the
criteria for the date range.
Example:
Between Forms!Form1!txtDateFrom And Forms!Form1!txtDateTo
I noticed that you are not using the US date format. I don't do
internationalization, but from what I've read there are times that you have
to use the US date format to get things such as this to work. If that is the
case, change the above to
Between Format(Forms!Form1!txtDateFrom, "mm/dd/yyyy") And
Format(Forms!Form1!txtDateTo, "mm/dd/yyyy")
The format command changes the date to a string so you may need to also
concatenate in # signs as a date delimiter.
Between "#" & Format(Forms!Form1!txtDateFrom, "mm/dd/yyyy") & "#" And "#" &
Format(Forms!Form1!txtDateTo, "mm/dd/yyyy") & "#"
--
Wayne Morgan
Microsoft Access MVP
"Michelle" <mi*************@poferries.com> wrote in message
news:72**************************@posting.google.c om...
Hi all
I have a report which displays staff absences. An absence record has
a start and end date and the type of absence, ie sickness, annual
leave.
I have created a form which allows the user to specify criteria for
viewing the report. The one I am having problems with is the date. I
allow the user to set a date range, so for example, the user selects
01/03/04 to 08/03/04 and I want to be able to show all absences that
fall within that date so in effect the report gives me a complete
picture of who is not available during that week.
so for example if an employee starts leave on 29/02/04 and ends on
2/03/04 i want this to show on the report
would be grateful for any help.
thanks
michelle