
Originally Posted by
bill s
I have pounded my head against something that should be simple. In my combo box where I am returning a row source using the query builder, I have the code below. In this case, IF the txtEmpRole is "OOEUSER", it returns records as expected. However if the txtEmpRole is not OOEUSER, then I get nothing despite the wildcard. Please tell me what I am doing wrong. Thank you!
IIf(([Forms]![OoeEntryForm]![txtEmpRole])="OOEUSER",([Forms]![OoeEntryForm]![txtEmpId]),([CROSSWALK].[EMPID]) Like "*")
Try adjusting your criteria to
Code:
LIKE IIf(([Forms]![OoeEntryForm]![txtEmpRole])="OOEUSER",([Forms]![OoeEntryForm]![txtEmpId]),"*")