subform extra record and 'dirty' event

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

Guest

Sorry, I hit the enter key by mistake...Is there any way to supress the last
empty record displayed in a subform set to continuous forms. I have mothers
on the parent form and any # of children on the subform and it always
displays an empty record - which I realize is for more data entry, but could
I suppress it and just call it up when I need it? Also, could someone
'splain to me about the 'dirty' event, like why it is checked after a 'not in
list' procedure. I've read the Help and it doesn't seem to satisfy my meager
mind. Thanx
 
Hi, set the AllowAdditions property for the subform (on the Data tab for
form properties) to False.
If you want to allow the subform to accept new records then change the
property to True (possibly utilising the OnCurrent event of the parent
form).

HTH, Graeme.
 
I'm a little confused by the second part of your question.

The Dirty event fires as you start to edit a Record or Control. It shouldn't
be fired after a NotInList event from a ComboBox.

The NotInList event fires only if the text entered to the combobox does not
appear in the list. i.e. you have entered some text and are attempting to
exit/save the field.
 
Back
Top