Here's my table:
Employee Email Incl Email2 Incl2
The Incl is a checkbox value on a form that allows the user to include or not include an email address when the form creates a distribution list based on results.
I can get the SQL to determine from the Incl to only include the first email address ... but what if the primary email address does not want to be included, instead the second email adress does? My SQL wouldn't show the Email2 if the Incl was not checked.
Here's what my SQL looks like:
Employee Email Incl Email2 Incl2
The Incl is a checkbox value on a form that allows the user to include or not include an email address when the form creates a distribution list based on results.
I can get the SQL to determine from the Incl to only include the first email address ... but what if the primary email address does not want to be included, instead the second email adress does? My SQL wouldn't show the Email2 if the Incl was not checked.
Here's what my SQL looks like:
Code:
strSQL = "SELECT tblEmp.Email, tblEmp.Incl, tblEmp.Email2, tblEmp.Incl2 " _
"FROM tblEmp " & _
"WHERE ((tblEmp.Incl) = Forms!frmEmp!chkIncl.Value) " & _
"AND ((tblEmp.Incl) = Forms!frmEmp!chkIncl2.Value);"