A
Amit
Windows XP, MS Access 2000
=======================
I have a form (frmEvent) to enter information for a Program Event, and it
has a subform (sfrmEventAttendee) to enter the names of attendees. The
default view for the subform is Datasheet, and the attendee names are
selected using a combo-box control, and the attendee IDs are stored in a
table (tblEventAttendee), along with the Program Event ID.
According to requirements, there has to be at least one attendee/Program
Event.
My two questions are:
1. What event(s) in frmEvent will have the code to check that at least one
attendee was selected in sfrmEventAttendee? I can think of two - OnClose and
BeforeUpdate . Will these be sufficient?
2. Is DLookup the best way to check for it?
Thanks for your response.
-Amit
=======================
I have a form (frmEvent) to enter information for a Program Event, and it
has a subform (sfrmEventAttendee) to enter the names of attendees. The
default view for the subform is Datasheet, and the attendee names are
selected using a combo-box control, and the attendee IDs are stored in a
table (tblEventAttendee), along with the Program Event ID.
According to requirements, there has to be at least one attendee/Program
Event.
My two questions are:
1. What event(s) in frmEvent will have the code to check that at least one
attendee was selected in sfrmEventAttendee? I can think of two - OnClose and
BeforeUpdate . Will these be sufficient?
2. Is DLookup the best way to check for it?
Thanks for your response.
-Amit