Hello, I need help with what seems to me like its confusing but maybe for the pro’s out there, it’s easy.
I have a table called “Master” that is pulling in an Outlook folder and storing the emails as records. Each email has an unique ID number field. I would like to run an update query that I can link emails together sort of like parent and child emails.
The field that can marry all the emails together is a field called “Subject2”. For the family to be a true family, the parent email and all the child emails have to have the same Subject2 say for example they all have “america”. Also, the two children emails have the same string of text in their attachment fields such as "xyz".
Here is the full scenario:
- A user sends a parent email which has the following criteria: the subject is constant string of text “start” AND attachment is null and subject2 = america
- Child #1 email has the following criteria: subject is a constant string of text “upload” AND attachment is a string of text “xyz” AND subject2 = America
- Child #2 email has the following criteria: subject is a constant string of text “download” AND attachment is a string of text “xyz” AND subject2 = america
The subject I will always know, the attachment field for the children records I don’t know but they will always match and the subject2 field for all family members I don’t always know but they will always have matching strings of text.
I’d like to create an update query to enter in the for the parent record for field master.child the children record id’s and for the children records for the field master.parent the parent id.
Any help with this is much appreciated.