Hello I am doing a project for class and I am just stumped on multi field
search. I'm sorry if this in the wrong section but I believe my issue in within
my query, but I'm not sure.
I have a form that has text fields with
Location, Zip, Shelters, and Counseling. Also a Run Query button
FYI
Shelters and Counseling are text but are designated with a Y or N
When I
search by location or zip I have no problems at all, but say I search by
location and shelters. I then get my correct location, but shelters is showing
all shelters data within the correct location
I am a beginner with Access. Also the version I am using if it matters is
2010
below is my SQL View
SELECT Contacts.Agency,
Contacts.Location, Contacts.[ZIP/Postal Code], Contacts.Shelters,
Contacts.Counseling
FROM Contacts
WHERE (((Contacts.Location) Like "*"
& [Forms]![Search Form]![Location] & "*") AND ((Contacts.[ZIP/Postal
Code]) Like "*" & [Forms]![Search Form]![zip] & "*") AND
((Contacts.Shelters) Like "*" & [Forms]![Search Form]![Shelter] & "*")
AND ((Contacts.Counseling) Like "*" & [Forms]![Search Form]![counseling]
& "*"));
Thanks