meirfridman
Technical User
Hallo all,
I am busy building a database with a table of log records recording any changes made to the foundation data.
This is the code i use:
The problem is, if the user inserts special characters I get error 3075.
Is there any way i can force the program not treat data entry as source code?
Thanks
I am busy building a database with a table of log records recording any changes made to the foundation data.
This is the code i use:
Code:
CurrentDb.Execute "INSERT INTO tblLogRecords (fldLoginId, fldTime, fldAction, fldDescription) VALUES (" & LoginId & " , Now() , 'Changed type name' , 'In category " & CategoryName & ":" & vbCrLf & "From " & OLdData & " To " & Nz(Me.TypeName, "Empty") & " ' )"
The problem is, if the user inserts special characters I get error 3075.
Is there any way i can force the program not treat data entry as source code?
Thanks