Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello!

 

I'm using VB.NET 2003 and Crystal Reports and I have a problem / question with displaying strings in a win report.

I have a win report based on mdb database file. I want to print an address string for example, so I created a formula filed that contains:

 

trim({cities.cityName}) & ' ' & trim({personalDetails.street}) & ' ' & trim({personalDetails.house})

 

When I print the report, it displays the address correctly only if all 3 fields are filled in the database, but if just one of them is empty, nothing will be displayed!

Can someone tell me why is this and why it doesn't work as it should, meaning displaying the city and house only if street doesn't exist and so on ... ??

 

Thanks!

Tom Rahav.

Posted
Not too sure what the problem could be since I don't use Crystal Reports, buy my guess is that you are trying to concatenate to something that is a NULL value. If that is the case, you can change your query to replace NULL values with an empty string, and that should work...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...