B
Bruce Hawkins
I have a data entry form that enters data in a table, no query involved. On
the form I have a subform that shows the data from the table for the section
that is selected in a combo box on the form.
If I open the form, pick a section, the data displays, and I can add names
and data to the table ( most of the data is picked in combo boxes on the
form). Seems to work fine, but if I open the form, do nothing and then
close the form it will sometimes insert a blank record in the table
(actually a record with all the default values entered and no name).
Can anyone explain what is happening, and how I can prevent it? I have
tried some code for undo record in the close button but that just messes up
the last entry, and does not work for the open/close problem. It does not
seem to be a problem with just a simple data entry form with text boxes and
no subform.
Thanks.
Bruce Hawkins
the form I have a subform that shows the data from the table for the section
that is selected in a combo box on the form.
If I open the form, pick a section, the data displays, and I can add names
and data to the table ( most of the data is picked in combo boxes on the
form). Seems to work fine, but if I open the form, do nothing and then
close the form it will sometimes insert a blank record in the table
(actually a record with all the default values entered and no name).
Can anyone explain what is happening, and how I can prevent it? I have
tried some code for undo record in the close button but that just messes up
the last entry, and does not work for the open/close problem. It does not
seem to be a problem with just a simple data entry form with text boxes and
no subform.
Thanks.
Bruce Hawkins