Then there's something going on outside of your IIF statement. "Name" might
actually be tripping it up, or it could be something else. You need to look
farther afield.
--
--Roger Carlson
MS Access MVP
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
Thanks for the reply... Yours was one of the combinations of attempts
that I
had tried previously. But, I did paste your IIF below and I am still only
returning the "_" for all records regardless of wild card text content
criteria being met or not met. This one is really stumping me and holding
me
up! Thank you for the avoid field "Name" tip. I will keep in mind for
future databases.
:
I don't really know why your IIF is returning just "_", but you should
avoid
naming your fields or controls "Name" since that is a reserved word and
sometimes causes confusion.
The real problem I see with your statement is that you are only
evaluating
[ExpemptionType] with a value of S & L in your name field. You need to
put
parenthases around all of the OR conditions:
=IIf([ExemptionType]="B" AND ([Name] Like "*S & L*" OR [Name] Like
"*Saving*" OR [Name] Like "*SVG*" OR [Name] Like "*S&L*"),"X","_")
--
--Roger Carlson
MS Access MVP
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
On my report, I have an unbound field that should contain an "X" if the
[ExemptionType] field = "B" AND the [NAME] field contains any of the
text
combination "Saving", "S & L", "SVG", or "S&L" else place "_" in the
unbound
field.
=IIf([ExemptionType]="B" AND [Name] Like "*S & L*" OR [Name] Like
"*Saving*"
OR [Name] Like "*SVG*" OR [Name] Like "*S&L*","X","_")
Right now, I only get the "_" for all records. The field is not
looking
at
the wild card text conditions.
Thanks!