Hi, this should be an easy problem but I haven't been able to figure out how:
I have two tables: Table 1 called "Contacts" contains a bunch of email addresses. Table 2 called "Do_not_email" contains email addresses and domains that don't want to receive email from me.
Contacts Do_not_email
------------- --------------
123@abc.com 456@def.com
456@def.com abc.com
789@ghi.com
In the above example then, only 789@ghi would get an email because 456@def.com is on the do_not_email list, and the entire abc.com domain is blocked as well.
But how do I perform this match in Access? I can't just add both tables in a query and join them because I need to account for the abc.com domain cases as well. I'm guessing I might need to use the InStr function somehow?
Any tips on how to solve this would be appreciated.
Thanks!