richard luft
Registered User.
- Local time
- Yesterday, 19:56
- Joined
- Jun 4, 2004
- Messages
- 63
Hi; I'm using the following code in Ac2 without problem, but Ac2K is not recognizing 'd' as date. Can someone suggest the corrected syntax?
>>>>>>>
Function LenMonth(d)
Start = DateValue(month(d) & " / 1 / " & year(d))
Finish = DateAdd("m", 1, Start)
LenMonth = Finish - Start
End Function
>>>>>>>
Function LenMonth(d)
Start = DateValue(month(d) & " / 1 / " & year(d))
Finish = DateAdd("m", 1, Start)
LenMonth = Finish - Start
End Function