473,322 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Access 2003. Count check boxes in multiple fields.

6
Access 2003.

I have a query which pulls in a list if ID numbers with about 6 check box fields. In my report, I need to know how to count the number of ID numbers that have 2 or more of the fields checked.

Example:
There are (3) ID numbers listed that have Field A and Field B checked. How do I get the (3) to show in my report?

Thanks for you help.
J
Aug 29 '10 #1

✓ answered by liimra

Please refer to the following post which answers your question.

http://bytes.com/topic/access/answer...-2-chkbxs-true.

*Note the attached database there.

Regards,
Ali

3 3012
liimra
119 100+
Please refer to the following post which answers your question.

http://bytes.com/topic/access/answer...-2-chkbxs-true.

*Note the attached database there.

Regards,
Ali
Aug 29 '10 #2
J Hall
6
Thanks Ali, I just had to remove the = before the first IIf and it worked

=sum(IIf([A]=0 And [b]=0,0,IIf([A]=0 And [b]=-1,0,IIf([A]=-1 And [b]=0,0,"1"))))

Now here is another one I've been struggling with for a couple of weeks.

On another report I have a query that has records with both Check box fields and Test Fields.

I was able to get a sum of all the records in that query that had the text "GAMC" in the two fields [Pl Ri Ki] & [Pl Lt Ki] by using

=Sum(IIf([Pl Rt Ki]="GAMC",1,0))+Sum(IIf([Pl Lt Ki]="GAMC",1,0))

Now I want to know how may of that text from the two fields are on the records of two check fields.

From Column A (check box yes) and Column B (check box yes), how many times was "GAMC" in {Pl Rt Ki} & {Pl Lt Ki}

Hope that makes sense and is it doable?
I think I will also start a new thread on this one.

Thanks again,
J
Aug 29 '10 #3
liimra
119 100+
Moved here:
http://bytes.com/topic/access/answer...es#post3598346
Regards,
Ali
Aug 29 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris Wolfe | last post by:
I have two fields that draw their combobox values from the same table. LogBook04.Insurance is the Primary Insurance and LogBook04.SecIns is the Secondary Insurance. Both draw their values from...
1
by: nfrodsham | last post by:
In Microsoft's help literature, it states: "You can filter out non-unique rows by using the DISTINCT option of an aggregate function" I am trying to do this in Access 2003 with the COUNT...
1
by: Jim in Arizona | last post by:
I'm having dificulty figuring out how to process multiple check boxes on a web form. Let's say I have three check boxes: cbox1 cbox2 cbox3 The only way I can think of to code the...
1
by: ParkMan | last post by:
Hello, I am trying to open a Word template, fill some fields, and mark some check boxes as checked. Here is the code I am using: ' Launch Word and load the report template Set objWord = New...
1
by: subhodey | last post by:
Hi, I am running a report in MS Access 2003, and it has some fields placed side by side. One of the fields is a textbox named "Title". In the property option of this textbox, the "Can grow" is set...
1
by: Stinky Pete | last post by:
Morning, The Non-conformance file we use as part of our Corporate GMP Manufacturing complicance has a number of check boxes that users (7) can select when determining what category a...
3
by: Search & You Will Find | last post by:
I have a database in Access 2000 that I need some help on. I have three tables: PROJECTS, SYSTEMS, & SYSTEMSREF. They possess the following fields: -----------------------------------...
7
by: mlthomas007 | last post by:
Hi, A client asked for a code book (all fields, descriptions, tables, etc.) from our Access database. Has anyone had to do this? It seems to me there must be a way to extract all this...
1
by: KrazyKasper | last post by:
Access 2003 – Multi-Column List Box – Select Multiple Items I have a multi-column (3 columns) list box that works well to select one set of records or all sets of records (based on the first field...
2
by: KMEscherich | last post by:
Microsoft Access 2003 Hi there, am stuck with something that I am not sure on how to get done. I am attempting to have 3 check boxes and have 3 date fields. I need to have each date field be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.