Aaaggghhh IsDate("0.00") = True!!!! Pain in the arse . . . .
VB Code:
If IsDate (strItem) Then strItem = Format$(strItem, "dd-mmm-yyyy") End If
if strItem is a numeric string ie "0.00", "1.5" etc. then this returns a true. I assume that this is because it's interpreting it as the number of days since 31-dec-1899.
Pain in the arse, what use is a validation function that only fails non-numeric characters?
Rant over . . . .



Reply With Quote
