R
Ray Todd Jr
I have a form that will create printing batches (via code) thanks to the
contributions of Allen Browne. One of the functions I am attempting to
modify this code to do is to update a notes table with the date/time that the
letter was generated. As a result of my code, I get the following error
message:
Run Time Error 3075
Syntax Error (missing operator) in query expression 'letter printed on
4/17/2008 4/17/2008 9:34:17 PM
The code:
Dim strDefNote As String
strDefNote = "Letter Printed on " & Now()
strSql = "Update taDefendantNotes set DefNote= " & strDefNote & " where
taDefendants.BatchID= " & lngBatchID & " and tadefendants.defendantid =
tadefendantnotes.defendantid"
db.Execute strSql, dbFailOnError
Can anyone offer suggestion as to what I'm not adding to make this work.
Thanks,
Ray.
contributions of Allen Browne. One of the functions I am attempting to
modify this code to do is to update a notes table with the date/time that the
letter was generated. As a result of my code, I get the following error
message:
Run Time Error 3075
Syntax Error (missing operator) in query expression 'letter printed on
4/17/2008 4/17/2008 9:34:17 PM
The code:
Dim strDefNote As String
strDefNote = "Letter Printed on " & Now()
strSql = "Update taDefendantNotes set DefNote= " & strDefNote & " where
taDefendants.BatchID= " & lngBatchID & " and tadefendants.defendantid =
tadefendantnotes.defendantid"
db.Execute strSql, dbFailOnError
Can anyone offer suggestion as to what I'm not adding to make this work.
Thanks,
Ray.