Our database has an address table (ADDR), within this table are a few fields a few of which are - ADDRTEXT, ADDRTYPE, EFFDATE and REFKEY.
ADDRTEXT is the address text
ADDRTYPE is a code '0' for customers perminant address, '1' for temporary address, '2' for site address etc...
EFFDATE is the effective from date i.e if a customer changes their address, both will be stored on in the database.
REFKEY - the customer key.
Our software is able to determin the customers current address by selectin the ADDRTEXT where the EFFDATE is most recent, ADDRTYPE is 0.
I've no idea how to get CR to do this, agian I'm guessing its going to be some sort of formula field but don't know where to begin.
Thanks very much
ADDRTEXT is the address text
ADDRTYPE is a code '0' for customers perminant address, '1' for temporary address, '2' for site address etc...
EFFDATE is the effective from date i.e if a customer changes their address, both will be stored on in the database.
REFKEY - the customer key.
Our software is able to determin the customers current address by selectin the ADDRTEXT where the EFFDATE is most recent, ADDRTYPE is 0.
I've no idea how to get CR to do this, agian I'm guessing its going to be some sort of formula field but don't know where to begin.
Thanks very much