Pat Hartman said:
Forms do not store data, tables store data. The tables in a relational database do not have cells. They have rows and columns. Formulas are not written the way they are in a spreadsheet. You'll need to describe your table structure and explain the calculation you want to perform.
I have three tables tblSubject, tblBlock and tblImport. tblImport gets external data from excel and has 8 fields (
UPN Number, Forename, Surname, Form, Choice 1, Choice 2, Choice 3, 3 Choices Entered) the 3 choices have to be entered manually they are NOT imported. tblSubject has (
Subject ID Number, Subject Name, Technology). tblBlock has (
Option Block ID, P1C1, P1C2, P1C3, P1C4, P2C1, P2C2, P2C3, P2C4, P3C1, P3C2, P3C3, P3C4). I have a queries that will produce class lists, class sizes, whether 3 choices entered or not, subject data. I also have a query that shows all the data from tblBlock and all the data from tblImport (this is called qryOption). I have a form that acts as a dialog box where the subject name is selected from the combo and class lists can be queried and reports made. I have a form that uses the data from qryOption and displays P1C1, P1C2 etc. in 3 columns of four, I also display each individual pupils data on the form. I have then added several (36 not quite several!!) text boxes and these use IIf statements to see whether or not the subject chosen by the pupil is in P1C1 or P1C2 or P1C3 etc and if it is then it displays a 1 otherwise 0. This enables me to use other text boxes to count the number of 1's. I then use another text box that uses the fact that if three ones are in the text boxes for each column then three choices can be taken and if only 2 non 0 numbers then 2 choices and if only 1 non 0 number then only 1 choice can be taken from the current grid. What I want to do is use a query to make a table that will contain the number of choices that can be taken so that I can then count the number of people who can take 3 choices, 2 choices, 1 choice etc. This would then enable me to compare the option blocks and find out which block enables the most people to take all three of their choices.