Tables: -
LEARNERS(learner_id(pk), firstname, surname, address1, address2, town,
county, postcode, contact_number, dob, gender, ethnicity, healt_problems,
learning_difficulties, PA, start_date, leave_date, outcome, accreditation,
warnings, notes)
Learners table is linked to:
ATTENDANCE(attendance_id(pk), learner_id(fk), attendance_key_monday,
attendance_key_tuesday, attendance_key_wednesday, attendance_key_thursday,
attendance_key_friday)
the attendance_key fields use a look up for:
ATTENDANCE_KEY(attendance_key_id(pk), key_description)
The data I get from my report at the minute is:
Kevin Martin
Month W/E Monday Tuesday Wednesday Thursday Friday
Nov-04
29/11/2004 N/A N/A Present Present
Present
Dec-04
06/12/2004 Present Present Present Sick N/A
13/12/2004 Sick Sick Sick Sick N/A
20/12/2004 Absence Present Absence Absence N/A
27/12/2004 Present Present Present N/A N/A
What I would like to see is a total of instances of Present, Sick, Absent
etc at the bottom of my report.
Duane Hookom said:
I would like to see
- actual table and field names
- some sample data from these table(s)
- expect results from this sample data
Do you really have fields with names that include days of the week? If
so,
is there any chance that you can change the structure to be more
normalized?
--
Duane Hookom
MS Access MVP
--
in my database I have a number of learners and I also record their
attendance
for each week that they are on the course. I have run a report to show
what
that learners attendance is over the time the learner was on the course
and
broken it down into monthly periods. The report looks like this:
Month W/E Mon Tue Wed Thurs Fri
Nov
29/11/04 N/A N/A Present Present
Present
Dec
06/12/04 Present Present Present Sick N/A
13/12/04 Sick Sick Sick Sick
N/A
20/12/04 Absent Present Absent Absent N/A
I tried the code but it didnt work. Every attendance type under monday
is
called Attendance_Key_Monday(selected on a drop down) and there can be
many
instances depending on how long the learner is on the course. Does
this
help
anymore? If you need more information just tell me what you need.
:
Is this value by itself in field? If so,
=Sum(Abs([YourField]="Present"))
If this isn't your situation then you should provide more information.
--
Duane Hookom
MS Access MVP
I have a report that shows attendances. I have instances of
Present,
Sick
and Absent. I would like to count the instances of each one and
have
it
record the number on the report. Is there anyway of doing this?