How to assign a default date value (now) to an optional parameter.
When assigning the now object to an optional parameter below, the error is increased
Constant expression is required
the code:
Public Sub ReminderMail(Optional ByVal ReminderMailDate As DateTime = Now)
End Sub
source
share