M
Mary
I am trying to create a query that will eliminate people living in group
homes. I put this together in the grid format. However, when I write this
query it is ignoring what I am requesting. If I limit by one home it will
remove it, but if I limit by more than one then it doesn't eliminate any of
the homes. Here is what I have:
SELECT tblCustomerAddresses.IndexName, tblCustomerAddresses.CustomerType,
tblCustomerAddresses.HomeAddress1, tblCustomerAddresses.HomeAddress2,
tblCustomerAddresses.HomeAddress3, tblCustomerAddresses.HomeCity,
tblCustomerAddresses.HomeState, tblCustomerAddresses.HomeZip,
tblCustomerAddresses.Country
FROM tblCustomerAddresses
WHERE (((tblCustomerAddresses.CustomerType) Like "member*") AND
((tblCustomerAddresses.HomeAddress1) Not Like "*motherhouse*" Or
(tblCustomerAddresses.HomeAddress1) Not Like "*mapleway*" Or
(tblCustomerAddresses.HomeAddress1) Not Like "*center*"));
Suggestions are very appreciated.
homes. I put this together in the grid format. However, when I write this
query it is ignoring what I am requesting. If I limit by one home it will
remove it, but if I limit by more than one then it doesn't eliminate any of
the homes. Here is what I have:
SELECT tblCustomerAddresses.IndexName, tblCustomerAddresses.CustomerType,
tblCustomerAddresses.HomeAddress1, tblCustomerAddresses.HomeAddress2,
tblCustomerAddresses.HomeAddress3, tblCustomerAddresses.HomeCity,
tblCustomerAddresses.HomeState, tblCustomerAddresses.HomeZip,
tblCustomerAddresses.Country
FROM tblCustomerAddresses
WHERE (((tblCustomerAddresses.CustomerType) Like "member*") AND
((tblCustomerAddresses.HomeAddress1) Not Like "*motherhouse*" Or
(tblCustomerAddresses.HomeAddress1) Not Like "*mapleway*" Or
(tblCustomerAddresses.HomeAddress1) Not Like "*center*"));
Suggestions are very appreciated.