G
Guest
Using Office 2003 and Windows XP:
I'm trying to obtain the DCOUNT of Job_Titles where they appear in
variables: strDept1 and strDept2; but, I get zero even though I know that at
least one exists.
Dim lCount as Long
lCount = DCount("JOB_TITLE", TableHeadCounts, DEPT1 = " & strDEPT1 & " And
DEPT2 = " & strDEPT2 & " And JOB_TITLE = " & strJOBTITLE & ")
1) Can someone please correct my formula above so it will work?
2) This formula is in a Form's class module - does this matter?
Thanks for the much needed help.
I'm trying to obtain the DCOUNT of Job_Titles where they appear in
variables: strDept1 and strDept2; but, I get zero even though I know that at
least one exists.
Dim lCount as Long
lCount = DCount("JOB_TITLE", TableHeadCounts, DEPT1 = " & strDEPT1 & " And
DEPT2 = " & strDEPT2 & " And JOB_TITLE = " & strJOBTITLE & ")
1) Can someone please correct my formula above so it will work?
2) This formula is in a Form's class module - does this matter?
Thanks for the much needed help.