> I have a form "Info" which has a default field filled in "=date()"
> when I click the exit button it adds another record but everything is
[quoted text clipped - 16 lines]
> I am trying to make it so it does not add a new record when these
> buttons are hit. Thanks for your suggestions in advance!
A default value on a field will NOT cause a record to be created. However
code that sets the value of any control (even to a null) WILL cause a record
to be started and that record will try to save when you leave the record or
close the form.
Your "Clear" button should just issue an Undo on the form rather that
setting values on all the controls. If you see this happen even when you
don't use the clear button then you have code some place else that is
setting a value.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
JR Brown - 04 May 2007 20:08 GMT
> > I have a form "Info" which has a default field filled in "=date()"
> > when I click the exit button it adds another record but everything is
[quoted text clipped - 26 lines]
> don't use the clear button then you have code some place else that is
> setting a value.
so what about the exit button that adds a record?
Rick Brandt - 04 May 2007 21:27 GMT
> so what about the exit button that adds a record?
Exiting the form *in any fashion* will save the current record if it has
been dirtied.
If you are saying that all a user has to do is navigate to the new record
position, press your Exit button, and this is writing a record to the table
then you must have some code or a macro that is dirtying the record. You
need to eliminate that.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
>I am trying to make it so it does not add a new record when these buttons
>are hit. Thanks for your suggestions in advance!
Add a line
Me.Undo
John W. Vinson [MVP]
JR Brown - 04 May 2007 23:54 GMT
Thanks for all your Help Guys!!
> >I am trying to make it so it does not add a new record when these buttons
> >are hit. Thanks for your suggestions in advance!
[quoted text clipped - 4 lines]
>
> John W. Vinson [MVP]