473,387 Members | 1,492 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,387 software developers and data experts.

Calculating a percentage of attendees on access

Hi

I am trying to create a report to allow me to find the percentage of people who have attended a training course.

The format is in date form, and i am wondering if i am able to calculate the percent of attendees from a list of dates.

I have tried using count function but i cant seem to get it to work

Thanks
Aug 6 '12 #1
4 2776
twinnyfo
3,653 Expert Mod 2GB
jambon87,,

Depending on how your report is set up, you might be able to group the report by attendance date, count the attendees on that date, and then in a separate text box, divide that value by the total number of attendees.

Please provide more information on how your report is set up.
Aug 6 '12 #2
the report is very basic, infact it was created using the report wizard!

It shows a list of attendees and the date they attended , it also includes a list of people who did not attend. I need a field to show how many people attended and the percentage of people over all who attended.

I hope this helps. I am a bit of a novice when it comes to Access.
Aug 6 '12 #3
twinnyfo
3,653 Expert Mod 2GB
Does your table have a field that indicates attendance only (i.e. a Yes/No check box)? Or, do you know whether someone attended based on the date alone (i.e. a date indicates attendance, whereas no date indicates they did not attend)?

Either way, this should be pretty simple. Just insert a text box in the report with a control source of the following.

For a Yes/No Checkbox:

Expand|Select|Wrap|Line Numbers
  1. =DCount("*","TableName","[CheckBoxName] = True")/Count("*")
  2.  
Or, for a Date field:

Expand|Select|Wrap|Line Numbers
  1. =DCount("*","TableName","IsNull([DateField]) = False")/Count("*")
  2.  
I hope this gets you pointed in the right direction!
Aug 6 '12 #4
zmbd
5,501 Expert Mod 4TB
We need the underlying query/table feeding your report.

However, to get you in the correct frame of mind :)
I you can get a sum or a count then you can get the rest.

http://office.microsoft.com/en-us/ac...001122444.aspx
-z
Aug 10 '12 #5

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

Similar topics

3
by: Lars G. Svensson | last post by:
As a regular ciwas reader, I learned that fixed-pixel designs are evil, so for the newly created site http://www.ddc-deutsch.de (in German, still very much under construction) I arranged the...
4
by: Mahesh S | last post by:
Hi I am writing a sql query (added below) to calulate percentage. Its returning an integer value whereas I would like to get a float value (with 2 decimal precision). The query is: ...
1
by: josecruz | last post by:
I have created a main report, which is controlled with a date range parameter from the main form. The report has several sub reports, which perform calculations (counts and averages at the subreport...
9
by: AZKing | last post by:
Hi all, I would like to know how do you go about calculating percentages in Access. For example, in a form I have 3 combo boxes with drop down menus where a user can select "Yes" or "No" and a...
5
by: eliana82 | last post by:
I have problems calculating score percentages within groups. I have created a boat program in access where the information provided is name, team, boat and score. The first query I've done is...
1
by: Dineo | last post by:
Hi there I've created a database and a pivot table but I need to calculates percentages of all the WithdrwalAmt (the amount being withdrawn when retire) per PayeeName (where the money was invested...
38
by: d0ugg | last post by:
I'm writing a program that will have to roll the dice A and dice B one million times, and calculate the percentage of times that the dies will be equal. I'm having trouble to figure out how the...
5
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. ...
14
by: Karen D | last post by:
Hello Experts! I am running a report on a query in Access 2003 and I need to get the median(s) for several different fields in the footer of the report. I am currently using this solution from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.