I'm using Access 2003. have over 14,000 rows of data for a database. Each row has a unique key DociID number. Every row contains metadata for an email or its attachment. There is only 4 columns of metadata (From, To, Cc and Bcc). I need to determine which emails are completely company internal emails based on domain names meaning emails that ONLY were sent and received by internal employees. I have concatenated the From, To, Cc, and Bcc fields for each email into a field called "AllDomains" so I have all of the email addresses into one column (concatenated for each row).
If there are any email domains in the AllDomains cell for each row that are NOT the following email domains:
@rodm
@rodmanandrenshaw
then that row of metadata contains external email addresses or non-company email addresses. If the AllDomains cell contains only email address with the above 2 domains then I know it's an internal email and it came from an internal employee and it was sent only to internal employees. Some rows will not have any metadata because they are attachments to the emails.
I would like to populate an additional column with either "Internal" or "External" every time I determine a row of metadata contains only internal or any external emails.
Any help is greatly appreciated. Thanks!