Okay, so I don't know if this is possible, or what I must do if it is. Here is what I am trying to do. I run a database which tracks student registration at camp. One of the things we do is assign students to certain cabins. These cabins each have a limited capacity. So, in one table, I listed the cabins, whether they are male or female, and the max capacity. In the primary table we list the Names and info of the students and assign a cabin through a combo box. Is there any way to automatically sum up the number of people per cabin, and compare that to the Cabin's max number when inputing in the form (want to run a macro letting the person inputing that there is no more space available)? Also is there a way to compare the gender to run a macro if the gender of the cabin and the person don't match?