G
Guest
I am having problems using an update query. The code appears in VBA function
designed to send emails to employees. I would like to have the query update
based on who the email was just sent to, so that i know that an email was
sent to that employee. My code is listed below:
strSQL = "UPDATE qryEmailReminder SET qryEmailReminder.ReminderSent = Yes
WHERE (((qryEmailReminder.Company)=rst!Company) AND
((qryEmailReminder.Contact)=rst!Contact) AND
((qryEmailReminder.Action)=rst!Action) AND
((qryEmailReminder.Comments)=rst!Comments) AND
((qryEmailReminder.EmployeeEmail)=rst!EmployeeEmail));"
CurrentDb().Execute strSQL, dbFailOnError
Thanks for your help.
designed to send emails to employees. I would like to have the query update
based on who the email was just sent to, so that i know that an email was
sent to that employee. My code is listed below:
strSQL = "UPDATE qryEmailReminder SET qryEmailReminder.ReminderSent = Yes
WHERE (((qryEmailReminder.Company)=rst!Company) AND
((qryEmailReminder.Contact)=rst!Contact) AND
((qryEmailReminder.Action)=rst!Action) AND
((qryEmailReminder.Comments)=rst!Comments) AND
((qryEmailReminder.EmployeeEmail)=rst!EmployeeEmail));"
CurrentDb().Execute strSQL, dbFailOnError
Thanks for your help.