Reload the form with no data

S

Simon

When i open up a form it has no data in it, i then use my form that
will look up data ect but i would then like a button that clear all
data so its like how it was first loaded up


Thanks
 
W

Wayne-I-M

A form will show all data that is held in the bound table field (bound to the
control in the form).

To open you form blank - you need to go to a new record

Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
End Sub

Or use the data entry = yes

Or with a button

Private Sub ButtonName_Click()
DoCmd.GoToRecord , , acNewRec
End Sub

But make sure you don't just keep creating lots of empty records ???
 

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

Top