combined save and clear command button

  • Thread starter Thread starter susanhull
  • Start date Start date
S

susanhull

I'd appreciate help to create one command button that both saves the
data and clears the screen for the next record to be entered. Thanks
for your time.
 
If Me.Dirty Then Me.Dirty = False
If Not Me.NewRecord Then RunCommand acCmdRecordsGotoNew
 
If Me.Dirty Then Me.Dirty = False
If Not Me.NewRecord Then RunCommand acCmdRecordsGotoNew

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.






- Show quoted text -

Thank you, Allen. Your code worked beautifully. I appreciate your
expertise.
 
Back
Top