The SetAfterCommitFlags() subroutine is called at the end of the commit event
procedure. SetAfterCommitFlags() re-enables disabled buttons and textboxes and
sets the DoUpdate and DoAdd flags to false.
Sub SetAfterCommitFlags()
'disable commit and re-enable add and update buttons
Commit.Enabled = False
AddNew.Enabled = True
cmdUpdate.Enabled = True
'enable the other buttons
cmdFirst.Enabled = True
cmdPrevious.Enabled = True
cmdNext.Enabled = True
cmdLast.Enabled = True
cmdFind.Enabled = True
cmdUpdate.Enabled = True
AddNew.Enabled = True
DoUpdate = False
DoAdd = False
txtEmpno.Enabled = True
End Sub