Hey guys,
I have a form (pictured) that is used to issue sales worksheets to our salespeople.

When either of the "Issue.." buttons is pressed, the follow code runs (along with some other stuff that doesn't matter to you guys):
Code:
CurrentDb.Execute "UPDATE T_checkout_master set store=" & Me.SelectStore & ", Salesperson='" & _
Me.EmpCode & "', DateIssued=#" & Me.IssueDate & "#, SalesName='" & Me.SalesName & "' WHERE SerialNumber BETWEEN " & _
Me.SerialFrom & " AND " & Me.SerialTo & ""
What is the best way to ensure that the sql is only update records that are empty (where DateIssued is null)? Theoretically this shouldn't be an issue, but 1 store already overwrote another stores entries due to a keying mistake.
I am assuming that I can just put the DateIssued is null in that code after the WHERE part, but how would I make sure that none got updated unless all are able to updated. All or nothing. I also need to display a msgbox.
Thanks