Forum Moderators: open
"insert into tblQueue (QueueEMail, QueueSubject, QueueBody) select EMail, '" & _
NsraShared.safequotes(MailSubject) & "', '" & NsraShared.safequotes(MailBody) & _
"' from (((tblUsers " & _
"inner join tblUserGroups on tblUsers.UserID = tblUserGroups.UserID )" & _
"inner join tblUserTypes on tblUserTypes.UserId = tblUsers.UserID )" & _
"inner join tblRegistrations on tblRegistrations.UserId = tblUsers.UserId)" & _
"where UserInactive = false and tblUsers.EMail is not null group by email"
What I don't know how to do is that same query except send to only people who aren't in the tblRegistrations. Any suggestions? Thanks,