im have a form with a text field that the user, upon submission, is adding to the database (a simple access db)... problem is I need to prevent apostrophes from being written to the db...
I tried adding the following line before the insert statement
but that just prevents the submission from being written to the database alltogether (as opposed to only removing the apostrophe. withthout this line of code its added to the db( with the apostrophe) just fine though.
I tried adding the following line before the insert statement
Code:
MM_formVal = Replace(MM_formVal,"'","''")
but that just prevents the submission from being written to the database alltogether (as opposed to only removing the apostrophe. withthout this line of code its added to the db( with the apostrophe) just fine though.