D
Dan Neely
I have a main form frmFoo to edit records in tblFoo. One of the
fields in tblFoo is a BarID. tblBar only has a single string field to
go along with the autonumbered ID. To allow the user to easily add a
new bar at need I have a subform frmBar using tblBar as a datasource.
frmBar is set to open to the to the new record and only allows
additions not edits or deletes. A value entered into the textbox in
frmBar is only saved if the user presses enter in the textbox.
The problem I have is that whenever I click the next record in frmFoo
if there's any unsaved data in frmBar's textbox that value is saved as
well. I don't want the save to happen though in this case. Ideally
I'd prefer that the unsaved value was erased, but it being left
present but still unsaved would be acceptable.
fields in tblFoo is a BarID. tblBar only has a single string field to
go along with the autonumbered ID. To allow the user to easily add a
new bar at need I have a subform frmBar using tblBar as a datasource.
frmBar is set to open to the to the new record and only allows
additions not edits or deletes. A value entered into the textbox in
frmBar is only saved if the user presses enter in the textbox.
The problem I have is that whenever I click the next record in frmFoo
if there's any unsaved data in frmBar's textbox that value is saved as
well. I don't want the save to happen though in this case. Ideally
I'd prefer that the unsaved value was erased, but it being left
present but still unsaved would be acceptable.