I have use the code below ..
..to actually change back the double quotes stored on the database to single quote when the data calls to the screen.
as from the screen (user keyed in) to the database I used the code below; to prevent the quotation mark error from pop up.
The code works just fine if i key in a string without any quotation mark, it'll will be stored just fine in the database but somehow problem rise when i try to key in a string with quotation mark where the new data doesn't go into the database. There's no error but it's just the data isn't going into the database.
What should i do to correct these problem?
Code:
txtName.Text = Trim(Replace(CurrRs("NAME"), "''", "'"))
as from the screen (user keyed in) to the database I used the code below; to prevent the quotation mark error from pop up.
Code:
CurrRs("NAME") = Trim(Replace(txtName.Text, "'", "''"))
What should i do to correct these problem?
Comment