Close form wihout saving data command button

  • Thread starter Thread starter fatboy
  • Start date Start date
F

fatboy

Guest
I need to code a command button to close a form without saving any selected data to the bound table..
In effect a cancel button.
I'm a newbe to VBA, so would appreciate any help.
Thanks in anticipation,
Fatboy
 
If you have access 2000, the auto complete function shows you how to code this function.

When I wuz really green, and did not even think of places like this forum, I use to use the button wizard to make lot's of buttons, and then copy the code, modifying one thing at a time until it did what I wanted.
 
If you don't have Access2000 and still need help with this, search for help on "Dirty". I know if you've never heard of this property it sounds funny, but it's the property that detects changes made to a form. I think the example should have the code you need.
 

Users who are viewing this thread

Back
Top Bottom