472,805 Members | 1,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Counting text fields and displaying percentages in reports

114 100+
Access 2003
I have a table (TASKS) filled with data from an external source. The table lists several tasks for employees to complete and has a text field (STATUS) that identifies where in the completion process the task is by a single alpha character (e.g. C=Complete, N=Not Started, A=Actively Working, W=Waiting, and X=Not Applicable).

I have reports that query the table and provide reports specific to a task or to who is responsible for the task, etc. I want to have a summary page at the end of my reports that explains the status of all tasks on the report with percentages.

e.g. For Task A:
20 tasks are C (complete) 20%
20 tasks are N (not started) 20%
30 tasks are A (actively working) 30%
30 tasks are W (waiting) 30%
0 tasks are X (not applicable) 0%

AND ON ANOTHER REPORT

For Joe Schmo:
0 tasks are C (complete) 0%
15 tasks are N (not started) 30%
5 tasks are A (actively working) 10%
10 tasks are W (waiting) 20%
15 tasks are X (not applicable) 30%

I've played around with the COUNT function but can't seem to get it to work in this regard. Is this sort of summary possible with the text field? Can Access produce percentages to display like this? I really appreciate any feedback anyone can offer! Thanks.
Sep 11 '07 #1
3 2036
MMcCarthy
14,534 Expert Mod 8TB
Try this out for the first one and then see if you can work the others out.

=Sum(IIf([Status]="C",1,0)) & " tasks are C (Complete) " & (Count([Status])/100) * Sum(IIf([Status]="C",1,0))

should equate to

20 tasks are C (complete) 20%
Sep 13 '07 #2
martin DH
114 100+
Try this out for the first one and then see if you can work the others out.

=Sum(IIf([Status]="C",1,0)) & " tasks are C (Complete) " & (Count([Status])/100) * Sum(IIf([Status]="C",1,0))

should equate to

20 tasks are C (complete) 20%
Thanks! That displays the totals and percentages perfectly.
Sep 18 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Thanks! That displays the totals and percentages perfectly.
You're welcome.
Sep 18 '07 #4

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

Similar topics

8
by: BiNZGi | last post by:
Hi I have reduced the problem to this code: <form> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td><input type="text" style="width: 100%;" value="Lorem ipsum dolor...
3
by: Marti | last post by:
Dear everyone, Its my understanding that IE6 now uses a default text-size of "Small" rather than IE5's "Medium". Since I have used relative font-sizes (usually in ems) on all my sites, I am...
5
by: Robert | last post by:
Hello Accessors I have some reports created in Access that are very good for what they do. However, it seems to me that when you are displaying information you don't need to print out that a...
3
by: Megan | last post by:
hi everybody- i'm having a counting problem i hope you guys and gals could give me some help with. i have a query that retrieves a bevy of information from several different tables. first let...
4
by: Lauren Wilson | last post by:
Using VBA code on a form, does anyone know the most effective way to count characters entered into a text box AS they are being entered and displaying the number of characters remaining to the...
18
by: ChadDiesel | last post by:
I appreciate the help on this group. I know I've posted a lot here the last couple of weeks, but I was thrown into a database project at my work with very little Access experience. No other...
0
by: richardkreidl | last post by:
I have the following hash script that I use to compare two text files. 'Class Public Class FileComparison Public Class FileComparisonException Public Enum ExceptionType U 'Unknown A 'Add...
4
by: Dado | last post by:
I have a next situation with the textbox field: A - B = C 1. How to fill the A fill with the data from my previous recordset ? Can I do it with the expression builder ? 2. I want that every...
14
by: John Welch | last post by:
Hi all. I'm creating a FE/BE database that will be used by about 6 users. As usual, I have several fields, such as "OrganizationTypeID" that will get values (via combo boxes in forms) from separate...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.