Hi all, I am have trouble with a command button code. I have a button that sends mail merged emails out based on a query. This is working great but I can’t figure out how to change a yes/no field in the query that flags it as sent. There can be anywhere from 1 to 40 emails the can be sent out with the command button. Can I change the flag value on all the records found in the query using the same On Click code?
Code:
Private Sub cmdTicketSend_Click()
On Error GoTo Err_cmdTicketSend_Click
Application.FollowHyperlink ("c:\Docs\Ticket.doc")
Exit_cmdTicketSend_Click:
Exit Sub
Err_cmdTicketSend_Click:
MsgBox Err.Description
Resume Exit_cmdTicketSend_Click
End Sub