Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating on Previous Record Field

Status
Not open for further replies.

SamanthaW

IS-IT--Management
Aug 26, 2002
15
AU
I have a report that groups a property with any leases it has had during a given period. How can I calculate the days the property was vacant based on a field in the previous record's lease vacating date and the next lease start date, i.e.:

Property
Lease 1 Start Date / End Date /
Lease 2 Start Date / End Date / Days Vacant = [Start Date] - [Lease 1 End Date]
Lease 3 Start Date / Days Vacant = [Start Date] - [Lease 2 End Date]

There is no limit to the number of leases a property might have.
 
Thanks, I ended up dusting of my rusty MS Access code skills and wrote"on print" code that stored the value of the previous lease vacation date and calculated this with the current lease start date an passed the result into a custom field value in the report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top