K
Kevin D.
I have an Event database where I keep track of the number of people sitting
at a table. I'm trying to write some code where when a table is assigned to
an attendee, a count will be done of the number of people assigned to that
table and if it exceed the table maximum a message box would appear with a
warning.
The table maximum is stored in the "Setup" Table in a field called "TableMax".
Each attendee is assigned a table # stored in the Field "TableNumber" in
the"tblAttendeesAll" Table. A field called "NumberInParty" stores the number
of people in each party, 1 for singles and 2 for couples.
So I need some code that when a table is assigned to an attendee sums the
"NumberInParty" Field for each entry at that "TableNumber" in Table
"tblAttendeesAll" and compares this number with the number stored in the
"TableMax" field in the "Setup" Table to see if it is more than or less than
the tablemax setting.
Sorry to be so long winded. Any help is greatly appreciated.
at a table. I'm trying to write some code where when a table is assigned to
an attendee, a count will be done of the number of people assigned to that
table and if it exceed the table maximum a message box would appear with a
warning.
The table maximum is stored in the "Setup" Table in a field called "TableMax".
Each attendee is assigned a table # stored in the Field "TableNumber" in
the"tblAttendeesAll" Table. A field called "NumberInParty" stores the number
of people in each party, 1 for singles and 2 for couples.
So I need some code that when a table is assigned to an attendee sums the
"NumberInParty" Field for each entry at that "TableNumber" in Table
"tblAttendeesAll" and compares this number with the number stored in the
"TableMax" field in the "Setup" Table to see if it is more than or less than
the tablemax setting.
Sorry to be so long winded. Any help is greatly appreciated.