R
RKH
I have created a search form using the following query to fill the subform.
It works as long as I type in the exact data in the column. I would like to
use the Like operator but when I do I get no results.
This is the original query:
SELECT Church.ID, Church.Name, Church.Address1, Church.Address2,
Church.City, Church.State, Church.PostalCode, Church.Phone, Church.Fax,
Church.Email, Church.Website, Church.Notes, Church.Pastor, Church.Extension,
Church.Ethnic
FROM Church
WHERE (((Church.Name)=[Forms]![SearchChurch]![Name]))
ORDER BY Church.Name;
Changed the query with the like operator as follows but give no results.
SELECT Church.ID, Church.Name, Church.Address1, Church.Address2,
Church.City, Church.State, Church.PostalCode, Church.Phone, Church.Fax,
Church.Email, Church.Website, Church.Notes, Church.Pastor, Church.Extension,
Church.Ethnic
FROM Church
WHERE (((Church.Name) Like ([Forms]![SearchChurch]![Name])))
ORDER BY Church.Name;
Richard
It works as long as I type in the exact data in the column. I would like to
use the Like operator but when I do I get no results.
This is the original query:
SELECT Church.ID, Church.Name, Church.Address1, Church.Address2,
Church.City, Church.State, Church.PostalCode, Church.Phone, Church.Fax,
Church.Email, Church.Website, Church.Notes, Church.Pastor, Church.Extension,
Church.Ethnic
FROM Church
WHERE (((Church.Name)=[Forms]![SearchChurch]![Name]))
ORDER BY Church.Name;
Changed the query with the like operator as follows but give no results.
SELECT Church.ID, Church.Name, Church.Address1, Church.Address2,
Church.City, Church.State, Church.PostalCode, Church.Phone, Church.Fax,
Church.Email, Church.Website, Church.Notes, Church.Pastor, Church.Extension,
Church.Ethnic
FROM Church
WHERE (((Church.Name) Like ([Forms]![SearchChurch]![Name])))
ORDER BY Church.Name;
Richard