I missed the beginning of the thread, but it seems to me that you're relying
VB to do an implicit cast/conversion of the Date variable to a string as
of the following line:
Perhaps you could try an explicit conversion of the date to a string like
L = "#" & FormatDateTime(Date) & "#"