G
GLT
Hi,
I am having an issue with string and quotes, can anyone advise why the
following wont work and what I need to do to fix it?
strSQL = "DELETE tbl01_FullCompare.ImpDate FROM tbl01_FullCompare WHERE
(((tbl01_FullCompare.ImpDate) =< " & dateLimit & "));"
Second Question: I often use the Query design grid to build my queries, and
when I get the query working correctly, I copy the SQL into VBA. Becuase I
am copying the SQL into a string (with quotes), I often run into issues
trying to work out how the quotes (or how many quotes to use). Is there any
function in access, say the SQL view where I can get it to automatically
ready the SQL to be used in a VBA string? Probably not but I thought it was
worth a shot...
Cheers,
GLT.
I am having an issue with string and quotes, can anyone advise why the
following wont work and what I need to do to fix it?
strSQL = "DELETE tbl01_FullCompare.ImpDate FROM tbl01_FullCompare WHERE
(((tbl01_FullCompare.ImpDate) =< " & dateLimit & "));"
Second Question: I often use the Query design grid to build my queries, and
when I get the query working correctly, I copy the SQL into VBA. Becuase I
am copying the SQL into a string (with quotes), I often run into issues
trying to work out how the quotes (or how many quotes to use). Is there any
function in access, say the SQL view where I can get it to automatically
ready the SQL to be used in a VBA string? Probably not but I thought it was
worth a shot...
Cheers,
GLT.