Johnnycat1
Programmer
Hello all...
I have what I thought to be simple dcount in some VB code that is making me crazy! The code reads:
strTotalMonHrs = DCount "[WEID]", "TblTimeSheetsDailyLogEmployees", [WEID] = strWEIDCode)
Error that this creates is that the database "can't find the field "|" referred to in your expression"
What I am banging my head on the wall with is that [WEID] = strWEIDCode returns a matching field so I don't understand why the criteria keeps giving me an error.
Your help is very appreciated!
I have what I thought to be simple dcount in some VB code that is making me crazy! The code reads:
strTotalMonHrs = DCount "[WEID]", "TblTimeSheetsDailyLogEmployees", [WEID] = strWEIDCode)
Error that this creates is that the database "can't find the field "|" referred to in your expression"
What I am banging my head on the wall with is that [WEID] = strWEIDCode returns a matching field so I don't understand why the criteria keeps giving me an error.
Your help is very appreciated!