PC Review


Reply
Thread Tools Rate Thread

Add totals of record type to a form footer.

 
 
JSchumacher
Guest
Posts: n/a
 
      3rd Jun 2010
Hi.

I've created a form with ~60 fields. 47 of them are combo boxes with 'yes',
'no' and 'na' options available.

I'm trying to create a series of text boxes at the bottom of the form to
show the counts of each selection (to be used later in determining a final
score, so at the footer the user would see something like

Total Questions; 74
Total Not Applicable; 24
Total Yes; 45
Total No; 5

I've so far tried playing around with the expression builder using the
'count' feature but can't quite seem to get the syntax right.

Advice appreciated.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      3rd Jun 2010
If these are text fields, you can count the number of Yes answers like this
(assuming a field is named Question1):
=Sum(IIf([Question1]="yes", 1, 0))

To try to count all the yes answers across 60 fields, you would need to
create such a text box for each field, and then another text box to sum the
total, e.g.:
=[Text0] + [Text1] + [Text2] + ...

In the end, the problem is that this is completely the wrong way to design a
table in a relational database. For an explanation, see:
Don't use Yes/No fields to store preferences
at:
http://allenbrowne.com/casu-23.html

Once you understand that, if you want an example of how to design a
questionnaire database, Duane Hookom has one called At Your Survey here:
http://www.rogersaccesslibrary.com/f...-e6b9d9a3.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"JSchumacher" <(E-Mail Removed)> wrote in message
news:74C9406F-30B6-41CD-910D-(E-Mail Removed)...
> Hi.
>
> I've created a form with ~60 fields. 47 of them are combo boxes with
> 'yes',
> 'no' and 'na' options available.
>
> I'm trying to create a series of text boxes at the bottom of the form to
> show the counts of each selection (to be used later in determining a final
> score, so at the footer the user would see something like
>
> Total Questions; 74
> Total Not Applicable; 24
> Total Yes; 45
> Total No; 5
>
> I've so far tried playing around with the expression builder using the
> 'count' feature but can't quite seem to get the syntax right.
>
> Advice appreciated.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
footer with form field type info inserted Carolyn Microsoft Word Document Management 2 16th Feb 2010 01:46 AM
Running Totals For Each Record in a Form Reese Microsoft Access Forms 3 15th Jan 2010 09:45 PM
Form footer totals judith Microsoft Access Forms 7 28th Jan 2009 11:33 PM
Totals in SubForm Footer do not display corectly on Main Contiuous form Sierras Microsoft Access Forms 3 16th Nov 2006 06:54 PM
Record totals in group footer =?Utf-8?B?Rmx5bm55?= Microsoft Access Reports 2 25th Sep 2006 03:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:39 AM.