Undefined Function error

Maclain

Registered User.
Local time
Today, 03:41
Joined
Sep 30, 2008
Messages
109
Hi All,

I'm using this function:

Code:
Public Function WorkingDay(StartDate As Date, NumberOfDays As Integer) As Date
    WorkingDay = Excel.WorksheetFunction.WorkDay(StartDate, NumberOfDays)
End Function

To find x number of working days from a date entered.

I need this in a few places, one of with is an update query.

I have a field which has the following expression:

Code:
Expr2: WorkingDay([Date Rec],5)

as this will only be run on the received day i have also tried:

Code:
Expr2: WorkingDay(Now(),5)

Both expressions return an error: Undefined Function 'WorkingDay' in expression.

Any ideas?
 
Looks like i have two functions with the same name.
 

Users who are viewing this thread

Back
Top Bottom