G
Guest
Can anyone tell me why when I pass no date parameter to this function the Len
enumerates to 8 and not zero?
Private Sub AuditAdd(strStuff As String, Optional dteDate As Date)
On Error GoTo ER
Dim dteNow As Date
If Len(dteDate) = 0 Then
dteNow = Now()
Else
dteNow = dteDate
End If
Thanks.
enumerates to 8 and not zero?
Private Sub AuditAdd(strStuff As String, Optional dteDate As Date)
On Error GoTo ER
Dim dteNow As Date
If Len(dteDate) = 0 Then
dteNow = Now()
Else
dteNow = dteDate
End If
Thanks.