G
Guest
I always seem to have this problem, and can never figure out what I am doing
wrong.
I have a Date variable - gblWeekBegin
and I am using it in a DLookup statement, like so:
gblPrevHours = DLookup("Hrs7", "tblTimeEntries", "WeekBegin = _
'" & gblWeekBegin & "'")
WeekBegin, in tblTimeEntries, is a ShortDate. I keep getting a Data Type
Mismatch.
I'm certain I am calling the variable incorrectly, but I can't seem to get
the syntax correct.
Any assistance would be greatly appreciated.
TIA.
Sharkbyte
wrong.
I have a Date variable - gblWeekBegin
and I am using it in a DLookup statement, like so:
gblPrevHours = DLookup("Hrs7", "tblTimeEntries", "WeekBegin = _
'" & gblWeekBegin & "'")
WeekBegin, in tblTimeEntries, is a ShortDate. I keep getting a Data Type
Mismatch.
I'm certain I am calling the variable incorrectly, but I can't seem to get
the syntax correct.
Any assistance would be greatly appreciated.
TIA.
Sharkbyte