I was able to solve it, but it doesn't really make much sense to me. Upon pressing the save image, I changed focus to another combobox in the form that can't be edited.
The purpose was to save the value in txProjectNotes. The problem was that after being edited, txProjectNotes would not lose focus, the focus was stuck on the textbox, even if the save image was clicked. That meant as a result, that if a new value was typed into txProjectNotes, it wasn't stored before the save image was clicked.
It may have something to do with the fact that the textbox Enter Key Behavior was changed to New Line In Field. It may also be that images behave differently than command buttons with concern to focus.
I tried to change focus to another textbox that is hidden, but Access wouldn't allow that. I guess that makes sense - can't focus on a hidden field.
Working code:
Code:
'Click away from editable fields to save values
Me.cmCustomerName.SetFocus
'Run update command
strUpdate = "UPDATE tProject SET tProject.ProjectNotes = '" & Me.[txProjectNotes].value & "' WHERE tProject.ProjectName = '" & Me.[cmProjectName].value & "'"
DoCmd.RunSQL strUpdate