Jumat, 04 November 2011

[MS_AccessPros] Function is not available in expressions in query expression

 

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?

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar