I am attempting to update the notes field of my Orders table with a new note.
The newnote variable has the existing notes and the new note appended at the bottom and can be a few pages long.
When I attempt to run the SQL
I get a Runtime error 3075 saying syntax error missing operator in query expression: And then the contents of the newnote variable displayed.
How do I encapsulate the content of my newnote variable so that it is updated into the field and not interpretted as part of the SQL command.
Mark Van Laarhoven
Dot Imaging Online Printers, Sydney, Australia.
The newnote variable has the existing notes and the new note appended at the bottom and can be a few pages long.
When I attempt to run the SQL
Code:
SQL = "UPDATE Orders " & "SET Orders.notes = " & newnote & "WHERE Orders.OrderID = " & recordID
I get a Runtime error 3075 saying syntax error missing operator in query expression: And then the contents of the newnote variable displayed.
How do I encapsulate the content of my newnote variable so that it is updated into the field and not interpretted as part of the SQL command.
Mark Van Laarhoven
Dot Imaging Online Printers, Sydney, Australia.