S
Sirocco
This isn't so much a question as an example of how insanely ridiculous SQL
syntax can be.
I pulled my hair out trying to solve this one, even with some sample code
that contains the proper syntax. In the following SQL, why doesn't it work
without the empty string just before the first line continuation characters?
If the idea is to generate an actual SQL string, including spaces between
key words, why not just put an extra space before the WHERE of the second
line, and why isn't an extra empty string also necessary before the AND of
the last line?
strSQL = "UPDATE table SET StatusCode =" & Me![Combo10] & " " & _
"WHERE table.CaseCode = " & Me![CaseCode] & _
"AND table.ActualDate = #" & Me![BeginDate] & "#"
Thanks in advance.
syntax can be.
I pulled my hair out trying to solve this one, even with some sample code
that contains the proper syntax. In the following SQL, why doesn't it work
without the empty string just before the first line continuation characters?
If the idea is to generate an actual SQL string, including spaces between
key words, why not just put an extra space before the WHERE of the second
line, and why isn't an extra empty string also necessary before the AND of
the last line?
strSQL = "UPDATE table SET StatusCode =" & Me![Combo10] & " " & _
"WHERE table.CaseCode = " & Me![CaseCode] & _
"AND table.ActualDate = #" & Me![BeginDate] & "#"
Thanks in advance.