ShaunWillmott
Registered User.
- Local time
- Today, 21:37
- Joined
- Dec 21, 2001
- Messages
- 17
Friends, you have always managed to help before.
The problem: I'm trying to calculate the Occupancy rate for a Flat, people move in and out of a flat (of which there are 8) during the year and I need to work out the time (in wks) between moves (when Flat is unoccupied), I have a query by Flat which lists the tenants in order they moved and their departure date. I need to hold the # of empty weeks for each month. Currently I'm getting the 1st record and holding the depart date, then I get the next record and datediff the depart vs. the Start dates which gives me the # of weeks between the residents, but I need to hold this # of weeks for each month? so if res1 leaves on Aug 17th and Res2 moves in on Oct 8th, Mth8 = 1, Mth9 = 4 & Mth10 = 1 (6 wks empty)
Anybody help? (or understand what I'm on about)
Cheers, Shaun
The problem: I'm trying to calculate the Occupancy rate for a Flat, people move in and out of a flat (of which there are 8) during the year and I need to work out the time (in wks) between moves (when Flat is unoccupied), I have a query by Flat which lists the tenants in order they moved and their departure date. I need to hold the # of empty weeks for each month. Currently I'm getting the 1st record and holding the depart date, then I get the next record and datediff the depart vs. the Start dates which gives me the # of weeks between the residents, but I need to hold this # of weeks for each month? so if res1 leaves on Aug 17th and Res2 moves in on Oct 8th, Mth8 = 1, Mth9 = 4 & Mth10 = 1 (6 wks empty)
Anybody help? (or understand what I'm on about)
Cheers, Shaun