Hi all,
I have these VB statements:
MyProd = "Bread's Butter"
rs.Find "ProductName = '" & MyProd & "'"
Here's the issue. As you can see, MyProd contains an apostrophe, which wreaks havoc in the next statement. I could strip the apostrophe but then it won't find the entry in the database. Does anyone know of a workaround for this. I have run out of options. Any responses are appreciated. Thanks a mill and have a good day.
I have these VB statements:
MyProd = "Bread's Butter"
rs.Find "ProductName = '" & MyProd & "'"
Here's the issue. As you can see, MyProd contains an apostrophe, which wreaks havoc in the next statement. I could strip the apostrophe but then it won't find the entry in the database. Does anyone know of a workaround for this. I have run out of options. Any responses are appreciated. Thanks a mill and have a good day.