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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic replace numbers

Status
Not open for further replies.

jh3016

Programmer
Jun 6, 2003
148
US
Newbie question -

I have a report that I would like to automatically replace all occurrences of the following:

From: .25 Replace with: .15
From: .30 Replace with: .30
From: .75 Replace with: .45

Is there an easy way to do this? I don't know code, so please explain in basic language.

Thanks in advance.
 
Let's say the field containing the value is called Fraction. Create an unbound text box on the report, and set its Control Source to
=Switch([Fraction]=.25, .15, [Fraction]=.30, .30, [Fraction]=.75, .45)

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top