i know this is probably really simple i just cant get my head round it
i have 3 tick boxes on a form called "Form", Field1, 2, and 3
i need a calculated field or a field of some sort that counts per line the number of instances of my tick boxes that are true. Ie if 1 and 3 are ticked the field result is a 2
ive tried playign on with queries in SQL view along the lines of
SELECT
(SELECT Count([Field1]) As Sum[Field1]
FROM Table
WHERE [Field1]=True) +
(SELECT Count([Field2]) As Sum[Field2]
FROM Table
WHERE [Field2]=True)
FROM Table;
but to no avail, ive also tried to use combinations of Count IIF and SUM in fields on a form but i keep getting the number of times field 1 is checked in the entire table and not that specific record.
just to make things interesting...the people im making this for want the information displayed in a table. i know that pretty much isnt possible so im going to cheat and do a form in datasheet style.
this way i think is easier as you can have calculated field that arnt in a table...might be wrong tho
Thanks
i have 3 tick boxes on a form called "Form", Field1, 2, and 3
i need a calculated field or a field of some sort that counts per line the number of instances of my tick boxes that are true. Ie if 1 and 3 are ticked the field result is a 2
ive tried playign on with queries in SQL view along the lines of
SELECT
(SELECT Count([Field1]) As Sum[Field1]
FROM Table
WHERE [Field1]=True) +
(SELECT Count([Field2]) As Sum[Field2]
FROM Table
WHERE [Field2]=True)
FROM Table;
but to no avail, ive also tried to use combinations of Count IIF and SUM in fields on a form but i keep getting the number of times field 1 is checked in the entire table and not that specific record.
just to make things interesting...the people im making this for want the information displayed in a table. i know that pretty much isnt possible so im going to cheat and do a form in datasheet style.
this way i think is easier as you can have calculated field that arnt in a table...might be wrong tho
Thanks