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

Report problem

Status
Not open for further replies.

TheRiver

IS-IT--Management
Dec 18, 2003
121
GB
I have a report craeted using a table. One of the fields in the table holds data that can either me a 1 or a 2.
1 = Male, 2 = Female.

I pull these ones and twos across onto the report. Is there any way of changing the ones and twos in the control source so that the report shows male or female????
 
Add an unbound textbox to the report and set the control source to
=IIf([FieldName] = 1,"Male","Female")
 
I do this and the report just shows "#ERROR#"
 
Then in the Control Source for a textbox you should have
=IIf([Int_Man] = 1,"Male","Female")

If Int_Man is part of the Record Source then this expression should work.

Paul
 
That is a mystery then. I'm not sure what the problem is. If you just add a control with the Control Source set to Int_Man, what values are displayed in the Report?

Paul
 
Well that means that something in the Record Source for the Report isn't correct. Is the record source set to a query? If it is can you post the SQL for the query here.

Paul
 
I don't know what is causing this as if I change the field name from Int_Man to Int then it works fine. THe only problem is I want to use Int_Man as the fieldname.
 
I'm not sure what the name of a field would have to do with this whole thing. It doesn't make any sense to me. What is the datatype of the field? Text, Number? That might make a difference. Also, is it a lookup field by some chance.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top