When I push the button it dosent clear it.
Okay
This is what I am trying to do. I have a command button on the main form
and then a subform where Travelers enter there information. They can press
on command button to continue or the cmdUndo button to clear the form of what
they just typed and close.
Thanks for your time
Chey
If you're trying to clear *both* the Form and the Subform, it's a bit
more work! The moment you set focus to any control in the Subform, the
main form record is written out to disk and saved; the form is no
longer dirty, and cannot be Undone. Similarly, if you enter a record
on the Subform and set focus to the mainform (event to click a
button), that subform record is saved to disk; the form is not dirty,
and the record cannot be undone.
If you want to delete a record in this case, you must run a Delete
query (or perhaps two, depending on the setting of Cascade Deletes in
your relationships) to actually erase the stored record out of your
table (or tables).
John W. Vinson[MVP]