Function

  • Thread starter Thread starter Will Peterson
  • Start date Start date
W

Will Peterson

Hi Everyone,

Wrote a function and I keep getting this in the field:
#Name?

Version
2000

Funtion
Function FirstOfNextMonth()
FirstOfNextMonth = DateSerial(Year(Now), Month(Now) + 1, 1)
End Function

Pls hlp,

Thanks-In-Advance
WP
 
Doesn't the "Now" function require the () to work?

So your function should read:

FirstOfNextMonth = DateSerial(Year(Now()), Month(Now()) +
1, 1)


I could be wrong.
 
Back
Top