To Save or Not to Save, That is the Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I open a form for a "New Project" and populate the Project Number text box
when the form opens. Can I make it that the form is only saved if I determine
I want to have it save? Reason being if I populate the Project Number but the
user does nothing else, I don't want the form saved to the table.
Thanks
 
sturner333 said:
I open a form for a "New Project" and populate the Project Number text box
when the form opens. Can I make it that the form is only saved if I determine
I want to have it save? Reason being if I populate the Project Number but the
user does nothing else, I don't want the form saved to the table.
Thanks

Presumably you are populating the project number by assigning a value to the
text box, which dirties the record and so it gets saved.

If you set the text box's DefaultValue property instead of it's value, the
record will not be dirtied and will not get saved unless the user dirties
it.
 
Back
Top