Thank you all for your reply
Suzy.. This is a small part of the application that I'm working on. I do
have a table with some of the following info:
tblMain
RegistrationNo
LastName
FirstName
NumberOfAttendants
City
_
_
I will need something smilar to your table "table inventory", because I have
two events where I don't want to seat the people in the first event at the
same place for the other day event, but let's not worry about this at the
moment!
I was thinking of something like this: for example, go through "tblMain" and
take the member with the RegistrationNo "3" and assign him (if the attendants
number is 1) or them (if the attendants number is 2), to TABLE number 1. Then
take the next "RegistrationNo" from "tblMain" and assign the same TABLE to
him or them, until TABLE 1 is full (10 chairs occupied), then go on with the
next TABLE.
RegistrationNo LastNeme NumberOfAttendants TABLE
3 Smith 2
1
56 Jones 1
1
-
-
After we have 10 persons per TABLE "1", proceed to TABLE "2".
I also have a text control "Event1tableNo" on the form "frmRegistration"
bound to an empty field in the table "tblMain". When the a specific button on
the "frmRegistration" is clicked, all those fields will be filled out. To do
that, I need to know whether I need another table like yours, and how to link
all these together, and what is the code that I have to use?
Joseph.. I hope I explained some of your concerns above. I think we should
pick the members randomly and assign them into TABLES, in this way we will
eleminate the chance of sitting two members from the same city together. The
reason for that is to get them to know each other.
I hope it a little clearer now. Please let me know if you need more
explanation.
Thank you
Muneer