G
Guest
i have the following in my module and I am receiving an error when I run my
query saying runtime error 13 type mismatch
Public Function Weekends (BeginDate As Date, EndDate As Date) As Integer
Weekends = DateDiff("d", BeginDate, EndDate) & _
-DateDiff("ww", BeginDate, EndDate, 7) & _
-DateDiff("ww", BeginDate, EndDate, 1)
End Function
NB: the entries in the tables for begindate and end date have also time in
them as 12/06/2005 12:20 PM
query saying runtime error 13 type mismatch
Public Function Weekends (BeginDate As Date, EndDate As Date) As Integer
Weekends = DateDiff("d", BeginDate, EndDate) & _
-DateDiff("ww", BeginDate, EndDate, 7) & _
-DateDiff("ww", BeginDate, EndDate, 1)
End Function
NB: the entries in the tables for begindate and end date have also time in
them as 12/06/2005 12:20 PM