How let form close if opened by mistake

I have aform that when opened autopopulates a few required fields but if the user opened it by mistake and does not want to create a new entry he/she gets a message indicating that a particular field has not been entered.  Is there a way to sidestep this message and let the user close the form?
Who is Participating?
Rey Obrero (Capricorn1)Commented:
hmm, provide a Cancel button to undo the forms

private sub btnCancel_click()


docmd.close acform,

end sub
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.