G
Guest
I am trying to pass a date (now) through a function into an SQL statement. I
can't get the double and single quotes to work.
What I have now is:
" ' " & Now() & " ' "
which is read by the function I am passing it to as " ' 10/22/07 18:30:00 '
" and thus fails. This passes directly to SQL so I need '10/22/07 18:30:00'
How do I do this?
Thanks
can't get the double and single quotes to work.
What I have now is:
" ' " & Now() & " ' "
which is read by the function I am passing it to as " ' 10/22/07 18:30:00 '
" and thus fails. This passes directly to SQL so I need '10/22/07 18:30:00'
How do I do this?
Thanks