D
Douglas J. Steele
Realistically, there isn't a "perfect example", since how you get the
information to add to the table depends on the situation.
http://www.mvps.org/access/forms/frm0015.htm at "The Access Web" shows how
to use the event when all your underlying table contains is a text field and
an AutoNumber field.
For more complex examples, you probably need to replace the code in the Else
side of the If statement to open an update form modally so that execution of
the NotInList event halts until your update is finished. If you want to give
the user the option of not saving anything in that form, you'll need to set
up communication between the two forms so that the NotInList event knows to
set Response to acDataErrContinue rather than acDataErrAdded.
information to add to the table depends on the situation.
http://www.mvps.org/access/forms/frm0015.htm at "The Access Web" shows how
to use the event when all your underlying table contains is a text field and
an AutoNumber field.
For more complex examples, you probably need to replace the code in the Else
side of the If statement to open an update form modally so that execution of
the NotInList event halts until your update is finished. If you want to give
the user the option of not saving anything in that form, you'll need to set
up communication between the two forms so that the NotInList event knows to
set Response to acDataErrContinue rather than acDataErrAdded.