Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / March 2006

Tip: Looking for answers? Try searching our database.

Suppressing Lines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JustMe - 30 Mar 2006 23:00 GMT
I have a report where the information is not always filled in so I want to
supppress the blank lines.  For example if you have Address 1 and Address 2.
If you do not have information in Address 2, I want the city, state and Zip
to move up a line..
So if I have both Add1 and Add2 it would look like this...
123 Main Street
Apt 3
City Name, St, zip
(###) ###-####

If I only have one address it would look like this...
123 Main Street
City Name, St, zip
(###) ###-####

I can use the following to accomplish this
=iif(Fields!Add2.Value = "0", fields!Add2.Value, fields!CityStateZip.Value)

Now my problem is what if both field Add2 and CityStateZip or blank?  I want
it to look like
123 Main Street
(###) ###-####

Can I just add to the inline statement, if so, how?
GORAMS - 31 Mar 2006 15:18 GMT
I had a similar situation where there were two fields that could be blank and
I had to put an IIF inside an IIF on each textbox that needed to be moved up.
Here is an example of my code from one of the text boxes. Keep in mind that
your field names are going to change per text box.

Hope it helps.

=IIF(Fields!SADD1.Value = "0", IIF(Fields!SHIPTEXT.Value = "0", "CONTACT:" &
Fields!CONTACT.Value, "SHIPTEXT:" & Fields!SHIPTEXT.Value),
Fields!SCITY.Value)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.