Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
bencantello
Starting Member
10 Posts |
Posted - 2008-04-18 : 19:59:38
|
| I have a report which shows locations and user names. Some of the locations do not have user names and some do. The ones that do I would like them to show the user name and the ones who do not i would like it to show a "_" to click on to navigate to another report.I have been trying something like this:=IIF(Fields!UserName.value= " ", "_", "=Fields!UserName.Value")Any Advice??? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2008-04-18 : 20:37:31
|
| Do it in the select statementcoalesce(nulliff(UserName,''),'_')==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-04-19 : 00:34:46
|
| Try this also:-=IIF(Fields!UserName.value= " ", "_",Fields!UserName.Value) |
 |
|
|
|
|
|