A
auujxa2 via AccessMonster.com
Just when I think I'm getting good at SQL, I get humbled. I'm getting a
syntax error, and I know it's the last field, because if I remove it, it
works. And when I debg and hover over the last field, I get the path. So
it's just a matter of figuring out the correct placement of the quotations I
guess. Please help. Thank you in advance.
strSQL = "INSERT INTO MasterTbl ( When, Who, What, Where)" & _
" SELECT Now()" & "," & " """ & CurrentUser & """," & " " & "'S1'" &
" AS Str" & "," & " " & Application.CurrentProject.Path & ""
DoCmd.RunSQL strSQL
syntax error, and I know it's the last field, because if I remove it, it
works. And when I debg and hover over the last field, I get the path. So
it's just a matter of figuring out the correct placement of the quotations I
guess. Please help. Thank you in advance.
strSQL = "INSERT INTO MasterTbl ( When, Who, What, Where)" & _
" SELECT Now()" & "," & " """ & CurrentUser & """," & " " & "'S1'" &
" AS Str" & "," & " " & Application.CurrentProject.Path & ""
DoCmd.RunSQL strSQL