Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 22nd, 2003, 12:05 PM
kky kky is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 kky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question form calculations with yes/no fields for totals "yes" responses per record

I am working on a form (that is linked to a table) that contains a series of yes/no fields (about 12-15) in which I would like to insert a calculation at the bottom that will total the number of "yes" responses per record.

I am currently trying to use the domain count function and have written :

=DCount("[Field_one]","[Table_name]","[Field_one] = True"+"[Field_two]","[Table_name]","[Field_two] = True"+"[Field_three]","[Table_name]","[Field_three] = True"+"[Field_four]","[Table_name]","[Field_four] = True")

etc. for each of the 12-15 fields.

The error message I'm receiving states "The expression you entered has a function containing the wrong number of arguments"

I'm also wondering if the code I've written would attempt to give me a total number of "yes" responses for that field in the entire table, as opposed to adding all the "yes" responses per record.

Help!

Reply With Quote
  #2  
Old December 22nd, 2003, 12:50 PM
kky kky is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 kky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi all,

It's me again. I just figured it out on my own (isn't that how it always happens when we post a question?)

As it turns out, I was making this much more difficult than need be. For adding "yes" responses in a series of yes/no fields for each record, I only needed to enter the following in the textbox (just in case anyone else is curious):

=[Field_one]+[Field_two]+[Field_three]+[Field_four] etc...

Easy!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > form calculations with yes/no fields for totals "yes" responses per record


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway