Solved

IIF Expression based on Parameter

Posted on 2008-10-29
5
585 Views
Last Modified: 2012-08-13
I need an expression that show a certain field based on a parameter input

--
=iif(Parameters!NetorGross.Value = "Net",Fields!EndbalanceNet.Value,
iif(Parameters!!NetorGross.Value = "Gross",Fields!EndBalanceGross.Value))
--
It keeps on blowing up
thx
0
Comment
Question by:fundsf
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
PedroCGD earned 250 total points
ID: 22843915
=iif(Parameters!NetorGross.Value = "Net",Fields!EndbalanceNet.Value,
iif(Parameters!!NetorGross.Value = "Gross",Fields!EndBalanceGross.Value,NEEDTHISVALUE))

You need to add a value in NEEDTHISVALUE Fixed it?
Regards
0
 
LVL 38

Assisted Solution

by:Jim P.
Jim P. earned 250 total points
ID: 22844056
Are you saying you want someone to type in "net" or "gross" in a pop-up box?

Try this:
=iif(Trim([Enter Net or Gross])  = "Net",Fields!EndbalanceNet.Value,

,Fields!EndBalanceGross.Value)

Open in new window

0
 

Author Closing Comment

by:fundsf
ID: 31511447
Thx,
I took pieces of both of your answers and it worked.

=iif(Parameters!NetorGross.Value = "Net",Fields!EndbalanceNet.Value,
Fields!EndBalanceGross.Value)
0
 
LVL 38

Expert Comment

by:Jim P.
ID: 22844565
Glad to be of assistance. May all your days get brighter and brighter.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SLQ View not updating 10 47
Need Counts 11 43
Finding records between to times and spanning over midnight 21 44
Azure SQL DB? 3 21
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now