I have this code:
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("tblJobs", dbOpenDynaset)
rs.FindFirst "EmpNo=" & "'cbEmpNo.Value'" & " And " & "JobNo=" & "'cbJobNo.Value'"
and I've been getting type mismatch (removing the ' doesn't seem to help, nor does adding [] around EmpNo & JobNo).
in tblJobs both EmpNo & JobNo are defined as Long Integer.
cbEmpNo & cbJobNo are ComboBoxes with no control source. Their row source is a SQL query pulling EmpNo / JobNo from tblJobs.