I have this code:
strAny = "[YearId] = " & rsTemp!YearId
rsPerm.Find strAny
and it works. However, when I do the following it doesn't
strAny = "[YearId] = " & rsTemp!YearId & " AND " & _
"[DeptId] = " & rsTemp!DeptId & " AND " & _
"[CatId] = '" & rsTemp!CatId & "'"
rsPerm.Find strSQL
Can anyone tell me what I'm doing wrong? I should add YearId and DeptId are numeric and CatId is String.
Greatly appreciated.
Salzan
strAny = "[YearId] = " & rsTemp!YearId
rsPerm.Find strAny
and it works. However, when I do the following it doesn't
strAny = "[YearId] = " & rsTemp!YearId & " AND " & _
"[DeptId] = " & rsTemp!DeptId & " AND " & _
"[CatId] = '" & rsTemp!CatId & "'"
rsPerm.Find strSQL
Can anyone tell me what I'm doing wrong? I should add YearId and DeptId are numeric and CatId is String.
Greatly appreciated.
Salzan
Comment