D
DiDi
Hi, All : I borrowed Allen Browne's code to track Deletes, Edits, and
Inserts on a Form, I did modify to suit the needs,
However, I got a Runtime error "3075' syntax error in date in query
expression', the query expression lists in the following
Any idea to fix it?
sSQL = "INSERT INTO " & sAudTmpTable & " (audType, audDate, audUser,
[ID#], [Dod#], title, [Rev#], sectitle, " & _
"critreq, d1, d2, d3, d4, Internal_comments)" & _
"SELECT 'edit from 'AS audType, Now() AS audDate, strUserName AS
audUser, sTable.[ID#], sTable.[Dod#], " & _
" sTable.title, sTable.[Rev#], sTable.sectitle, sTable.critreq,
sTable.D1, sTable.D2, & _
" sTable.D3, sTable.Discipline4, sTable.Internal_comments" & _
" FROM " & sTable & " WHERE ((" & sTable & "." & sKeyField & "
= " & lngKeyValue & ")" & ");"
Above expression is working properly as an append query in Access query
design, but would get a Runtime error if the coding was placed within
the Form.
Thanks in advance for the help.
Inserts on a Form, I did modify to suit the needs,
However, I got a Runtime error "3075' syntax error in date in query
expression', the query expression lists in the following
Any idea to fix it?
sSQL = "INSERT INTO " & sAudTmpTable & " (audType, audDate, audUser,
[ID#], [Dod#], title, [Rev#], sectitle, " & _
"critreq, d1, d2, d3, d4, Internal_comments)" & _
"SELECT 'edit from 'AS audType, Now() AS audDate, strUserName AS
audUser, sTable.[ID#], sTable.[Dod#], " & _
" sTable.title, sTable.[Rev#], sTable.sectitle, sTable.critreq,
sTable.D1, sTable.D2, & _
" sTable.D3, sTable.Discipline4, sTable.Internal_comments" & _
" FROM " & sTable & " WHERE ((" & sTable & "." & sKeyField & "
= " & lngKeyValue & ")" & ");"
Above expression is working properly as an append query in Access query
design, but would get a Runtime error if the coding was placed within
the Form.
Thanks in advance for the help.