Click here to Skip to main content
15,908,015 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friend,,


I have created a label report having fields cname,oname,addr1,addr2,addr3,city,state.

It's like

Praveen
Hardware Shop

#34/1,Near Ram Mandir
3rd block
Rajaji Nagar
manipal
Karnataka

My question is if addr2 filed('3rd block') is blank, then the addr3 has to come up automatically..
Like

Praveen
Hardware Shop

#34/1,Near Ram Mandir
Rajaji Nagar
manipal
Karnataka


Please give me a solution as soon as possible.

I am using Crystal report 8.5
Posted

I am not much familiar with crystal report. But I can give you some sort of solution for your problem.
Instead of adding several address fields (addr1,addr2,addr3,city,state) you can add a one address field and then bind the combined address to that filed.

for ex: what I mean is you need only 3 labels.
cname
oname
address

then using the SQL or from the code behind, combine "non empty fields" and bind to the address field.

and also you can use the formula editor to suppress the label if the value is empty
 
Share this answer
 
i found a solution for this by making use of IsNull()... itz worked for me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900