mikenelena
Board Regular
- Joined
- Mar 5, 2018
- Messages
- 139
- Office Version
- 365
- Platform
- Windows
Our industry has recently discovered mail forwards, and is starting to make great use of them. In response, I changed our database to include client e-mail addresses in a separate table. A descriptor is also included for those e-mail addresses. (Personal, Acknowledgements, Status Reports, Invoices, etc.)
Here is the issue. When a client has multiple e-mail addresses, our reports generate an additional identical page for each e-mail address. I could handle the logic if we were to add every type of e-mail for every client, but many use only 1 e-mail address.
I need someway to write the query criteria such that if there is an "Acknowledgement" e-mail for the client, we use that, and only that. If there isn't one, we use "Individual" e-mail. Placing these criteria on different lines of the query builder is treating them, logically, as OR. I need the logic to be more like OR, but not both.
Thanks for any help this group can offer!
Here is the issue. When a client has multiple e-mail addresses, our reports generate an additional identical page for each e-mail address. I could handle the logic if we were to add every type of e-mail for every client, but many use only 1 e-mail address.
I need someway to write the query criteria such that if there is an "Acknowledgement" e-mail for the client, we use that, and only that. If there isn't one, we use "Individual" e-mail. Placing these criteria on different lines of the query builder is treating them, logically, as OR. I need the logic to be more like OR, but not both.
Thanks for any help this group can offer!