Hello Access forum users,
I'm new here and I have come to you with a technical obstacle i'm facing in the hope you guys will be able to assist me.
first off let met start by saying hi and saying that access isn't my usual work environment. I've been asked to expand on a currently existing system used for real-estate management. up untill now no issues but have now come across something that i have no clue on how to tackle.
here goes.
In the system i have the following relevant tables:
Customers
used to keep track of the owners of appartments
Buildings
used to keep track of general information where the appartments are housed in
appartments
general info specific to each appartment
rent
info partaining to the current occupant (that rents) of the appartment with general rent related info
management
info used by managers at the real-estate office to keep track of yearly information
just to give you a general view on how the current flow is. a building contains multiple appartments. a customer can have one or more appartments that (s)he is the owner of. on each of these appartments multiple records in the rent table can exist each represting a rent period by a certain individual (these are just stored in the rent table) the start and end date of the rental period are also filled here. also on each appartment assigned to a customer we have the management which offers information that can span multiple rent records.
the way this is accessed is as followed: there is a main form with customer info. in that i have a subform showing each appartment for the customer. on that subform there are 2 buttons.
1 leads to rents which opens a new form that shows the rent specific details so multiple records can exist per appartment. another button will lead to the management form and here comes my problem.
on the buildings table there is a date that represents the start when that appartment can be rented out. this is a yearly repeating element fixed on a 12 month interval. so it's like a calendar year just with a differnt start date. (if this "rentyear" starts for example on november 12th 2009 then it will end on november 11th 2010.
now for the part where i'm clueless:
on the management form which is specific for one appartment i would need a subform or grid that shows me each rentyear and the ability to add some additional info here. also I would need to let the lines be created automatically and keep track if multiple rentees are involved so that multiple lines can be written.
example:
building A has a rentyear startdate of 10/06/08
in case there would be one rentee up untill now i need 3 lines to be shown:
1 - 01/06/08 - 31/05/09 - rentee - "random info 1" - "random info 2" ...
2 - 01/06/09 - 31/05/10 - rentee - "random info 1" - "random info 2" ...
3 - 01/06/10 - 31/05/11 - rentee - "random info 1" - "random info 2" ...
(3 lines since we passed 01/06)
this can become even trickier if muliple rentees are involved. let's say the appartment was rented out to 2 ppl in this timespan. the first from 10/06/08 untill 12/12/09 and then the next one.
in this case i would need to see:
1 - 01/06/08 - 31/05/09 - rentee1 - "random info 1" - "random info 2" ...
2 - 01/06/09 - 31/05/10 - rentee1 - "random info 1" - "random info 2" ...
2 - 01/06/09 - 31/05/10 - rentee2 - "random info 1" - "random info 2" ...
3 - 01/06/10 - 31/05/11 - rentee2 - "random info 1" - "random info 2" ...
so this is the issue. I know it's quite a bit of info but i'm truely hoping you guys can help or at least point me in the correct direction.
Greetz
I'm new here and I have come to you with a technical obstacle i'm facing in the hope you guys will be able to assist me.
first off let met start by saying hi and saying that access isn't my usual work environment. I've been asked to expand on a currently existing system used for real-estate management. up untill now no issues but have now come across something that i have no clue on how to tackle.
here goes.
In the system i have the following relevant tables:
Customers
used to keep track of the owners of appartments
Buildings
used to keep track of general information where the appartments are housed in
appartments
general info specific to each appartment
rent
info partaining to the current occupant (that rents) of the appartment with general rent related info
management
info used by managers at the real-estate office to keep track of yearly information
just to give you a general view on how the current flow is. a building contains multiple appartments. a customer can have one or more appartments that (s)he is the owner of. on each of these appartments multiple records in the rent table can exist each represting a rent period by a certain individual (these are just stored in the rent table) the start and end date of the rental period are also filled here. also on each appartment assigned to a customer we have the management which offers information that can span multiple rent records.
the way this is accessed is as followed: there is a main form with customer info. in that i have a subform showing each appartment for the customer. on that subform there are 2 buttons.
1 leads to rents which opens a new form that shows the rent specific details so multiple records can exist per appartment. another button will lead to the management form and here comes my problem.
on the buildings table there is a date that represents the start when that appartment can be rented out. this is a yearly repeating element fixed on a 12 month interval. so it's like a calendar year just with a differnt start date. (if this "rentyear" starts for example on november 12th 2009 then it will end on november 11th 2010.
now for the part where i'm clueless:
on the management form which is specific for one appartment i would need a subform or grid that shows me each rentyear and the ability to add some additional info here. also I would need to let the lines be created automatically and keep track if multiple rentees are involved so that multiple lines can be written.
example:
building A has a rentyear startdate of 10/06/08
in case there would be one rentee up untill now i need 3 lines to be shown:
1 - 01/06/08 - 31/05/09 - rentee - "random info 1" - "random info 2" ...
2 - 01/06/09 - 31/05/10 - rentee - "random info 1" - "random info 2" ...
3 - 01/06/10 - 31/05/11 - rentee - "random info 1" - "random info 2" ...
(3 lines since we passed 01/06)
this can become even trickier if muliple rentees are involved. let's say the appartment was rented out to 2 ppl in this timespan. the first from 10/06/08 untill 12/12/09 and then the next one.
in this case i would need to see:
1 - 01/06/08 - 31/05/09 - rentee1 - "random info 1" - "random info 2" ...
2 - 01/06/09 - 31/05/10 - rentee1 - "random info 1" - "random info 2" ...
2 - 01/06/09 - 31/05/10 - rentee2 - "random info 1" - "random info 2" ...
3 - 01/06/10 - 31/05/11 - rentee2 - "random info 1" - "random info 2" ...
so this is the issue. I know it's quite a bit of info but i'm truely hoping you guys can help or at least point me in the correct direction.
Greetz