I took over an old DBs that is used to track tenants.
The person who created it, no longer work for the dept . He created this query that calculates the days a property has been occupied.
DaysOccupied: IIf(IsNull([DateOut]),DateDiff("d",[DateIn],Date()),DateDiff("d",[DateIn],[DateOut]))
To calucated the total days in a subform I added =Sum([DaysOccupied])
what I need or would if knew how is to do a similar one that caculates the vacant days.
The above formula is little complex for me so I was hoping some could help me out.
The person who created it, no longer work for the dept . He created this query that calculates the days a property has been occupied.
DaysOccupied: IIf(IsNull([DateOut]),DateDiff("d",[DateIn],Date()),DateDiff("d",[DateIn],[DateOut]))
To calucated the total days in a subform I added =Sum([DaysOccupied])
what I need or would if knew how is to do a similar one that caculates the vacant days.
The above formula is little complex for me so I was hoping some could help me out.