if this is just a matter of displaying the 'correct' address
group on the customercode
create a formual to sort your addresses in the order of importance you need
if isnull(add_type) then 0 else
if add_type='BU' then 1 else
if add_type='BMA' then 2 else
if add_type='Bi' then 3 else
etc.
Sort on this fomrual field
place the address field in the group footer
this will only show the last address in for that customer
hide the detail section