I have this sub that works fine on all my users (8) except one.
The line of code is:
80 TempVars("strWorkingMonthID").Value = DMax("[PeriodID]", "LUT_ClaimPeriods", "[ToDate] < Date() AND Left$([ShortName],1) <> 'P'")
The error is as follows:
Function is not available in expressions in query expression '[ToDate] < Date() AND Left$([ShortName],1) <> 'P'
The code just looks up the newest record that is before the present date, where the Shortname does not start with a "P".
I'm at a loss as to why it works fine on everyone elses apart from one machine. - Any ideas?
__._,_.___
MARKETPLACE
.
__,_._,___
Tidak ada komentar:
Posting Komentar