I need to write a query to search for up to two terms. The database I've set up has a form that pops up when the database is opened. One of the options is to search the database. I want to set it up to search up to 2 terms. For instance: suppose I'm trying to search for the term "hot soup burns". I want to be able to enter "hot", "soup", "hot soup" or "hot + burns".
The initial query I've written is as follows:
SELECT [Existing Reports].*
FROM [Existing Reports]
WHERE ucase([Existing Reports].[Product]) Like ucase([Enter Search Criteria]) & '*'
Or ucase([Existing Reports].[Report Title]) Like ucase([Enter Search Criteria]) & '*'
Or ucase([Existing Reports].[Area]) Like ucase([Enter Search Criteria]) & '*'
Or ucase([Existing Reports].[Business Owner]) Like '*' & ucase([Enter Search Criteria])
Or ucase([Existing Reports].[Summary]) Like ucase([Enter Search Criteria]) & '*';
Any ideas on the commands needed to allow for "search term 1" + "search term 2"?
Thanks
The initial query I've written is as follows:
SELECT [Existing Reports].*
FROM [Existing Reports]
WHERE ucase([Existing Reports].[Product]) Like ucase([Enter Search Criteria]) & '*'
Or ucase([Existing Reports].[Report Title]) Like ucase([Enter Search Criteria]) & '*'
Or ucase([Existing Reports].[Area]) Like ucase([Enter Search Criteria]) & '*'
Or ucase([Existing Reports].[Business Owner]) Like '*' & ucase([Enter Search Criteria])
Or ucase([Existing Reports].[Summary]) Like ucase([Enter Search Criteria]) & '*';
Any ideas on the commands needed to allow for "search term 1" + "search term 2"?
Thanks