I have a question about how to submit queries that include an apostrophe in an access database. For example, I want to search for records that have "women's health" in the title. When I try to search that, no records come up even though there are records that include that phrase. If I search women health, the records come up. How can I overcome the problem with the apostrophe?
I've tried searching previous questions and most of them say that I should use " " in my SQL query but I am using that and it still doesn't solve the problem. I don't have a technical background, can anyone give me some advice on how to fix my query so that I can search with apostrophes? My query is below. Thanks!
SELECT [Off-site records].[File Name], [Off-site records].Unit,
[Off-site records].Branch, [Off-site records].Division,
[Off-site records].[Date Sent], [Off-site records].[Archives (Yes/No)],
[Off-site records].[Date range], [Off-site records].[Accession Number],
Off-site records].[Box #], [Off-site records].[File Name],
[Off-site records].ID, [Off-site records].[File Name],
[Off-site records].[File Name]
FROM [Off-site records]
WHERE ((([Off-site records].[File Name]) Like "" & Forms!Search![File name] & "")
And (([Off-site records].Unit) Like "" & Forms!Search!Unit & "")
And (([Off-site records].Branch) Like "" & Forms!Search!Branch & "")
And (([Off-site records].Division) Like "" & Forms!Search!Division & "")
And (([Off-site records].[Date Sent]) Like "" & Forms!Search![Date sent] & "")
And (([Off-site records].[Archives (Yes/No)]) Like "" & Forms!Search!Archives & "")
And (([Off-site records].[Date range]) Like "" & Forms!Search![Date range] & "")
And (([Off-site records].[Accession Number]) Like "" & Forms!Search![Accession number] & "")
And (([Off-site records].[Box #]) Like "" & Forms!Search![Box #] & "")
And (([Off-site records].[File Name]) Like "" & Forms!Search![File name 2] & "")
And (([Off-site records].[File Name]) Like "" & Forms!Search![File name 3] & "")
And (([Off-site records].[File Name]) Like "" & Forms!Search![File name 4] & ""));