G
Guest
To insert Form data into the database I use the following command on the
button:
CurrentDb.Execute ("INSERT INTO TableName ([FieldName]) VALUES ('" & cboName
& "') "), dbFailOnError
When I put a single quote in the ComboBox, it returns a RunTime error 3075
(Syntax Error). Does anybody know how to correct this?
Thanks in advance!
Jochem
button:
CurrentDb.Execute ("INSERT INTO TableName ([FieldName]) VALUES ('" & cboName
& "') "), dbFailOnError
When I put a single quote in the ComboBox, it returns a RunTime error 3075
(Syntax Error). Does anybody know how to correct this?
Thanks in advance!
Jochem