As for declarations
is equivalent to
x is text or boolean (cancel clicked)
y is a date if everytingg goes fine. if not OK, then y is not OK, set but err.number is <>0
as for the code - there is an error in your code:-P you changed checking x with y in the long ElseIF
compare posts #6 (your code) and #3 (my code)
To drill it down a bit: what is your date format in system?
try
to see it.
if it is dd.mm.yyyy then even your code shall be fine. If not (in my case it is yyyy-mm-dd) of course not.
That's why I checked x there - x is a string, as user writes in the inputbox.
PS. note also my comment in post #5 why this checking is needed at all
Bookmarks