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

Question on parameter that is within a report field 1

Status
Not open for further replies.

mattiaturalla

Technical User
Feb 12, 2004
14
AU
I am trying to write a Crystal report which allows me to specify a parameter 01 to 12 which indicates month i.e. Jul - Jun. The parameter is to substitute for the last two digits within a report field e.g. auglmlbal.act_p04 i just can't seem to get it right!
 
I don't think you can use the text of a field name in a formula, but you could use a select case statement to create the crosswalk, e.g.:

select {?month}
case "01" : {auglmlbal.act_p01}
case "02" : {auglmlbal.act_p02}
case "03" : {auglmlbal.act_p03}
default : ""

This assumes that you want the parameter only to return the particular field, and you are probably hoping to return multiple fields. For more help, you would need to provide more information about what you are trying to do.

-LB


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top