Hello. I have a query set on my form to search for a keyword contained in my database. However, it searches for that term and it will not do a Boolean search. Is there a way to do this?
This is the code I'm using:
SELECT [DI Database].ID, [DI Database].Keyword, [DI Database].Question, [DI Database].Response
FROM [DI Database]
WHERE ((([DI Database].Keyword) Like "*" & [Enter the keyword you wish to search for (ex: Heart Failure)] & "*"));
That allows a user to press the search keyword button, type in their keyword, and it auto runs the query based on the entered term. A print preview of the corresponding report appears, and then when they close it, it returns to the standard form.
Any ideas on how to enhance it so, instead of typing in one keyword (or consecutive words side by side), you could do like "Inhaler AND Asthma" - where the results will pull up all questions that contain those two words only, and they don't have to be side by side in the database entry. Right now it will only search multiple words if they are side by side (Heart Failure) for example.
Thanks in advance!