Open blank form

  • Thread starter Thread starter myxmaster
  • Start date Start date
M

myxmaster

Hello,
I have a form with a combobox that helps the user find a record. I
have noticed that when the form is re-opened it displays the last
record. What code do I need to insert to have the form open with blank
fields.
TIA
 
Hello,
I have a form with a combobox that helps the user find a record. I
have noticed that when the form is re-opened it displays the last
record. What code do I need to insert to have the form open with blank
fields.
TIA

Put some code in the form's Load event:

Private Sub Form_Load()
DoCmd.GoToRecord acForm, Me.Name, acNewRecord
End Sub


John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top