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

Convert an input parameter

Status
Not open for further replies.

TimothyP

Programmer
Aug 6, 2002
135
US
How do I create a report that converts data from an input parameter to generate an output record based on variables I assign? To simplify, how would I convert an input parameter from 12345 to an output record of VWXYZ? So for this sample I think my variables would be defined something like this...
V=1
W=2
X=3
Y=4
Z=5

Any help would be appreciated.

Thanks,
Tim
 
Hi,
Could you explain more fully what you mean by an 'output record'?

Do you want to pass something like 12345 and then use a record selection criteria of VWXYZ ?

[profile]
 
Not sure exactly what you mean, but maybe you could adapt the following method, which assumes the parameter is a string:

replace(replace(replace(replace(replace({?parm},"1","V"),
"2","W"),"3","X"),"4","Y"),"5","Z")

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top