Dear all
I am working with CR XI on a SQL database.
I have a Rent account name field which if is a joint tenancy will contain either and '&' or the word 'and' e.g. Mr and Mrs X or Mr & Mrs X. Where the tenancy is a sole tenancy it will only be Mr X or Mrs X.
I have grouped my report by property codes which is fine. I have then listed all the clients associated with the active rent account against that property in details. This bring in all persons living ni the household, including children, all of whom have a client number. The report also shows whether the client is the primary client (true or False)
I need to be able to send a mailing to all clients who hold a tenancy - this is fine with sole tenancies, I cannot work out how to do this with joint tenancies and where there are more than one client on a sole tenancy.
I have tried an if...then...else statement as a formula (@Joint) so that all clients with a joint tenancy are '1' whether they are primary tenant or not, and only the primary tenant is '1' on a sole tenancy. All other clients are '0'
I then intended to use the 'Section expert' to suppress details where @Joint=0
The formual I have been trying in numerous ways is
if ((({hracracr.prim_clnt_yn}=False)
and
(not ({hrartamt.rent_acc_nm} like "?&?")))
or
(({hracracr.prim_clnt_yn}=True)
and
(not ({hrartamt.rent_acc_nm} like "?&?")))
then 1
else 0
So far it has not returned the result I want, and I have not yet tried to write in the suppression where there are children/other clients!
Can anyone please help with a simple solution!!!
Thanks, Ade
I am working with CR XI on a SQL database.
I have a Rent account name field which if is a joint tenancy will contain either and '&' or the word 'and' e.g. Mr and Mrs X or Mr & Mrs X. Where the tenancy is a sole tenancy it will only be Mr X or Mrs X.
I have grouped my report by property codes which is fine. I have then listed all the clients associated with the active rent account against that property in details. This bring in all persons living ni the household, including children, all of whom have a client number. The report also shows whether the client is the primary client (true or False)
I need to be able to send a mailing to all clients who hold a tenancy - this is fine with sole tenancies, I cannot work out how to do this with joint tenancies and where there are more than one client on a sole tenancy.
I have tried an if...then...else statement as a formula (@Joint) so that all clients with a joint tenancy are '1' whether they are primary tenant or not, and only the primary tenant is '1' on a sole tenancy. All other clients are '0'
I then intended to use the 'Section expert' to suppress details where @Joint=0
The formual I have been trying in numerous ways is
if ((({hracracr.prim_clnt_yn}=False)
and
(not ({hrartamt.rent_acc_nm} like "?&?")))
or
(({hracracr.prim_clnt_yn}=True)
and
(not ({hrartamt.rent_acc_nm} like "?&?")))
then 1
else 0
So far it has not returned the result I want, and I have not yet tried to write in the suppression where there are children/other clients!
Can anyone please help with a simple solution!!!
Thanks, Ade