-
1
- #1
I have the follwing code in access to find a record based on a combo box that the user picks:
strSearching = "MovieName = '" & [MovieNameComboBox] & "'"
Me.RecordsetClone.FindFirst strSearching
Me.Bookmark = Me.RecordsetClone.Bookmark
It works unless the name they are looking for has an apostrophe in it (Bram Stoker's, etc). Is there special syntax that will allow the user to search for words that might have an apostrophe in it?
Also, the above code also works if there is a hyphen or other syntax in it, just not an apostrophe.
THanks!
strSearching = "MovieName = '" & [MovieNameComboBox] & "'"
Me.RecordsetClone.FindFirst strSearching
Me.Bookmark = Me.RecordsetClone.Bookmark
It works unless the name they are looking for has an apostrophe in it (Bram Stoker's, etc). Is there special syntax that will allow the user to search for words that might have an apostrophe in it?
Also, the above code also works if there is a hyphen or other syntax in it, just not an apostrophe.
THanks!