Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

report question

Status
Not open for further replies.

DPUser

Technical User
Oct 17, 2003
16
US
I have created a report that contains a textbox with its control source property pointing to a field in a table making the report show what the table contains. The problem is that I want the text box to show either "buy" or "sell" based on what the field contains. For example, the field in the table contains a "I" or "A" and the report should show "Buy" if the field is "A" or "Sell" if the field is an "I". Is there any way that I could do this without creating a new table and dumping the contents of an existing table into the table?


Thank you
 
Hi, try creating another text box with this as it's control source
IIF([MyTextbox]="I","Sell",IIF([MyTextbox]="A","Buy","Not Specified"))

this should do it, just put in your textbox name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top