Hi All
I would like a bit of functionailty within my database, but i'm not sure where to start.
I have main table called tblPerson. Within this (amongst other fields) is ID (unique), CurrentAddressLine1, CurrentAddressLine2, CurrentAddressLine3.
I have another table called tblPropertyHistory with fields PropID (unique), ID(links to tblPerson) AddressLine1, AddressLine2, AddressLine3, MoveInDate, MoveOutDate,
I would like the Current Address fields in tblPerson to always be the address in tblPropertyHistory which has the most recent MoveInDate.
I have a bit of a feeling I need to create a query based on tblPerson, then have some kind of lookup to tblPropertyHistory, but what kind of formula do i need in the query field to return the correct address info, and then can i get this into the tblPerson, or should i just re-direct my forms and reports etc to the qry???
Or should the query have both tables, in which case how can i make the address info the most recent?
As you can probably guess, im at a bit of loss with this so far
Thanks in advance for your help.
Kev
I would like a bit of functionailty within my database, but i'm not sure where to start.
I have main table called tblPerson. Within this (amongst other fields) is ID (unique), CurrentAddressLine1, CurrentAddressLine2, CurrentAddressLine3.
I have another table called tblPropertyHistory with fields PropID (unique), ID(links to tblPerson) AddressLine1, AddressLine2, AddressLine3, MoveInDate, MoveOutDate,
I would like the Current Address fields in tblPerson to always be the address in tblPropertyHistory which has the most recent MoveInDate.
I have a bit of a feeling I need to create a query based on tblPerson, then have some kind of lookup to tblPropertyHistory, but what kind of formula do i need in the query field to return the correct address info, and then can i get this into the tblPerson, or should i just re-direct my forms and reports etc to the qry???
Or should the query have both tables, in which case how can i make the address info the most recent?
As you can probably guess, im at a bit of loss with this so far
Thanks in advance for your help.
Kev