"[EmpID] = '" & Nz([Screen].[ActiveControl], 0) & "'"
It saying type mismatch when I select a record.you need to wrap strings in single quotes
"EmpID = '" & screen.actvieControl & "'"
type mismatch error"[EmpID] = '" & Nz([Screen].[ActiveControl], 0) & "'"
Rowsource from table field of text type.What is the RowSource of cboSearch?
What are your table fields and their datatypes?
I never use macros, so I'm not familiar with the double = signs that you showed in your first image.
Did you replicate them in your adjusted expression based on the suggestions from majp and myself?
Please post the expression you have now. (Please copy and paste, don't post an image)
Is there any reason you're not using code instead?
="[EmpID] ='" & Str(Nz([Screen].[ActiveControl],0) & "'")
Yes, I changed the type from number to Text.Also, why did you change from number to text?
No. it don't have.Shouldn't you have the subform name in the Object field?
type mismatch error.you need to wrap strings in single quotes
"EmpID = '" & screen.actvieControl & "'"
Thanks for your time. Have a good night.I'll have to get back to you tomorrow. It's late here.
Someone else might pick up the pace in the meanwhile