Hi
I have an insert statement on a form
What should for it to accept value with apostraphe (') in them ?
I can replace them with blank stirngs, bet athats not really solution..
I have an insert statement on a form
Code:
sSql = "Insert Into ChangeHistory VALUES ('" & Group_Contact.Value & "', '" & ID.Value & "','" & ctrl.Name & "','" & ctrl.OldValue & "','" & Value & "', '" & User & "','" & Now & "')"
CurrentDb.Execute sSql
What should for it to accept value with apostraphe (') in them ?
I can replace them with blank stirngs, bet athats not really solution..
Code:
Value = ctrl.Value
Value = Replace(Value, "'", "")