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!

Replace Numbers from Form Option Group with Name

Status
Not open for further replies.

b2beck

Technical User
Dec 10, 2002
3
US
I have a field generated from an options group on a form which contains numbers and nulls (as, I understand, all fields generated from options groups must contain). I want to group records on a report by these numbers for reviewers but the would like something more descriptive than "1" or "2" for the headings.

I assume that the best method to do this is to add a text box "controlled" by the field or the lookup table linked to it. But I can't find out how to do it in the books I have.

Thanks for any help.
 
I do this on a report using an IIf statment. Im using it for a Yes/No control box, but I assume it could be modified to fit your needs.

=IIf(([Review Back Orders]='0'),"","Review Back Orders, ") & IIf(([Analyze Fill Rate]='0'),"","Analyze Fill Rate, ") & IIf(([Order Written]='0'),"","Order Written, ") & IIf(([Presented Business Plan]='0'),"","Presented Business Plan, ") & IIf(([Other]='0'),"","Other")

This says if the field [Review Back Orders] is set to No, dont print anything, otherwise print "Review Back Orders", and if the field [Analyze Fill Rate] is set to No, dont print anything.....

I'm not sure if you can use it for more than two options, like if [field]=1 print "decription1" or if [field]=2 print "description2" etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top