This is not the proper syntax for an IIF statement. Do a search in the VBA editor for IIF to get the syntax.
How are you running this statement?
Also, when you use Like, you have to use a wildcard. So
IIf([tblEmployee New]![Employee_ID] Like '0' & [tblEmployee New]![Dept] Like "Finance" Or "Sales","Yes",[tblEmployee New]![Reconciled])
Should be
IIf([tblEmployee New]![Employee_ID] Like '0*' & [tblEmployee New]![Dept] Like "Finance*" Or Like "Sales*","Yes",[tblEmployee New]![Reconciled])
That is if you want the string to begin with the text, if in the middle, add wildcards to the front and back of the search string.
Did that help any?
mmcdonal
|