CutAndPaste
Registered User.
- Local time
- Today, 05:12
- Joined
- Jul 16, 2001
- Messages
- 60
I've got a table with items that are available with a [startdate] and an [enddate] for their availibility. I've also got a report I want to run that is date limited. Some items will start and end within the period, some will start before and end during, some start during and end after and some will start before and end after.
I'm running the reporting dates from a form field and will limit the query by that form.
I'm currently limiting the records in the query by:
StartDate
<=[Forms]![frmMenuMain]![EndDate]
EndDate
>=[Forms]![frmMenuMain]![StartDate] Or Is Null
Reporting Period is 01/01/2005 to 31/01/2005
e.g.
ItemA Start = 10/01/2005 End = 31/01/2005
ItemB Start = 15/12/20045 End = 25/021/2005
ItemC Start = 20/12/2004 End = 25/01/2005
ItemD Start = 22/01/2005 End = 19/02/2005
I need to know for each item, how many days it was available during the reporting period.
How can I do this please?
thanks
I'm running the reporting dates from a form field and will limit the query by that form.
I'm currently limiting the records in the query by:
StartDate
<=[Forms]![frmMenuMain]![EndDate]
EndDate
>=[Forms]![frmMenuMain]![StartDate] Or Is Null
Reporting Period is 01/01/2005 to 31/01/2005
e.g.
ItemA Start = 10/01/2005 End = 31/01/2005
ItemB Start = 15/12/20045 End = 25/021/2005
ItemC Start = 20/12/2004 End = 25/01/2005
ItemD Start = 22/01/2005 End = 19/02/2005
I need to know for each item, how many days it was available during the reporting period.
How can I do this please?
thanks