I am trying to create a form that will accept multiple search criteria using the following SQL statement. However I am not sure of the SQl or how to create the form. Any help/tips/divine intervention appreciated.
The idea is that the form will select records on one or more of the parameters below.
SELECT *
FROM CompanyContacts
WHERE Sector = Forms![SearchForm]![Sector]
OR BusinessManager = Forms![SearchForm]![BusinessManager]
OR BusinessSector = Forms![SearchForm]![BusinessSector]
OR LECArea = Forms![SearchForm]![LECArea]
OR NumberOfEmployees = Forms![SearchForm]![NumberOfEmployees]
OR Turnover = Forms![SearchForm]![Turnover]
OR CompanyStatus = Forms![SearchForm]![CompanyStatus]
OR CreativeEdinburgh = Forms![SearchForm]![CreativeEdinburgh]
OR Softacad = Forms![SearchForm]![Softacad]
OR Partner = Forms![SearchForm]![Partner]
OR InnovationRating = Forms![SearchForm]![InnovationRating]
OR Allocated = Forms![SearchForm]![Allocated]
OR SEELStatus = Forms![SearchForm]![SEELStatus]
ORDER BY CompanyName;
Thanks
The idea is that the form will select records on one or more of the parameters below.
SELECT *
FROM CompanyContacts
WHERE Sector = Forms![SearchForm]![Sector]
OR BusinessManager = Forms![SearchForm]![BusinessManager]
OR BusinessSector = Forms![SearchForm]![BusinessSector]
OR LECArea = Forms![SearchForm]![LECArea]
OR NumberOfEmployees = Forms![SearchForm]![NumberOfEmployees]
OR Turnover = Forms![SearchForm]![Turnover]
OR CompanyStatus = Forms![SearchForm]![CompanyStatus]
OR CreativeEdinburgh = Forms![SearchForm]![CreativeEdinburgh]
OR Softacad = Forms![SearchForm]![Softacad]
OR Partner = Forms![SearchForm]![Partner]
OR InnovationRating = Forms![SearchForm]![InnovationRating]
OR Allocated = Forms![SearchForm]![Allocated]
OR SEELStatus = Forms![SearchForm]![SEELStatus]
ORDER BY CompanyName;
Thanks