I have a list of employees that need to be sent a letter if they meet a certain criteria. The report looks at a query and prints out a letter for each employee that needs one. I want to be able to update their record with the date the letter was printed on. I think I have the code to get this to work, but I'm not sure what event to put it under since when I run the report only one record updates out of the 3 that should have updated (as an example).
Dim sqlRP As String
sqlRP = "UPDATE PROCESS SET Process.DT_NOTICE_LETTER = Date() WHERE EMPLID ='" & [EMPLID] & "'"
CurrentDb.Execute sqlRP
Thanks
Dim sqlRP As String
sqlRP = "UPDATE PROCESS SET Process.DT_NOTICE_LETTER = Date() WHERE EMPLID ='" & [EMPLID] & "'"
CurrentDb.Execute sqlRP
Thanks