Link to home
Start Free TrialLog in
Avatar of Everymancomputers
Everymancomputers

asked on

Hiding cells function SQL

Hi,
 Is there any function in SQL which will allow to to hide cells on my Visual Studio report if theres another cell which is currently showing ?

Avatar of Lee
Lee
Flag of United Kingdom of Great Britain and Northern Ireland image

SQL returns data only. That kind of logic would have to be done in the report side of things.

Lee
inside your report say we have table

<table style="<%=rs("dd")%>

here rs("dd") : rs is record set and dd is field name

now come to query part

select
case when fieldname ="test" then "display:none"
         else "display:"
end as dd from tablenme

Syntax might be wrong its just an idea
Avatar of Everymancomputers
Everymancomputers

ASKER

I was using the TRIM function but that only solves one side of the problem i'm trying to avoid if possible creating two diffrent reports.

although the TRIM function removes the cell what I'm trying to work out is if  for example the cell which shows the bussiness name for it to hide the cell which shows the customer name.
ASKER CERTIFIED SOLUTION
Avatar of Christopher Gordon
Christopher Gordon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial