Solved

I want to give a text box values based on the value a field. How would i do so?

Posted on 2015-01-13
3
75 Views
Last Modified: 2015-01-13
For example if Field!PONumber  contains a c i want it to show one set of text otherwise i want it to show other text
0
Comment
Question by:vbnetcoder
3 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40546565
=IIf(InStr(Field!PONumber.Value, "c") > 0, "Yes","No")
0
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 500 total points
ID: 40546569
HI,

where is this textbox? if you are bulding SQL for report you can use CASE function like this

Select ( case when Field!PONumber like '%c%' then 'TEXT' else 'TEXT2' end) as textbox_text

Open in new window

0
 

Author Closing Comment

by:vbnetcoder
ID: 40547470
ty
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

17 Experts available now in Live!

Get 1:1 Help Now