kbrooks
Still learning
- Local time
- Today, 15:34
- Joined
- May 15, 2001
- Messages
- 202
This is probably insanely simple, but I just can't figure it out.
We have a field called Gender, the values are either M or F. We have a report formatted to look like a letter. I want to put a field on the report that will look at this gender field and put either "Dear Ms." or "Dear Mr." But I can't quite figure out how to do it.
I found an IIf statement that I changed to suit my fields, but there wasn't 2 parts of the If statement. I could get it to put in "Dear Ms." if gender=F, and put "Dear Mr." on all others. But I want to specify only if gender=M, in case they leave it blank or whatever.
We have a field called Gender, the values are either M or F. We have a report formatted to look like a letter. I want to put a field on the report that will look at this gender field and put either "Dear Ms." or "Dear Mr." But I can't quite figure out how to do it.
I found an IIf statement that I changed to suit my fields, but there wasn't 2 parts of the If statement. I could get it to put in "Dear Ms." if gender=F, and put "Dear Mr." on all others. But I want to specify only if gender=M, in case they leave it blank or whatever.