SlideShare a Scribd company logo
1 of 5
AttendanceRegister1 example database- explanationof how it works
attendanceregister1-explanationofhowitworks-210909160645 Page 1 of 5
General Notes
This very simple database records attendances for each class and week no. It assumes that each class runs
a fixed number of times (10 in this example) so may not be that flexible.
The object general properties (check Access Help if you don’t know what these are) of each table, query and
form have been filled in to provide documentation on the purpose of each object. Read these for further
information.
The database was created following ideas from helping a Placement and a FY Project student, both creating
school Attendance Register databases. It demonstrates a method of recording and analysing attendances.
It does not allow for Class Year or any other such refinements that may be needed in a full system.
Contents
Tables and Relationships
Forms
ChooseClass
AttendanceRegister
ChoosePupil
Links to the queries
AttendanceRegister
PupilAttendance
PupilAttendanceAll
PupilAttendanceAll_Crosstab
Saving query results
More information on using a Crosstab query
AttendanceRegister1 example database- explanationof how it works
attendanceregister1-explanationofhowitworks-210909160645 Page 2 of 5
Tables and Relationships
There are just three data tables in this example.
More tables would be needed in a full-blown system.
See section 3.6 of the ‘Getting Started’ VBA Trainer for how to use VBA code with combo boxes such as the
Ethnicity combo box.
Forms
ChooseClass
An unbound form.
Opens
AttendanceRegister
form.
These textboxes have values put in
when a class is chosen from the Class
combo box (see AfterUpdate event).
Based on Class
table, ordered by
Class Details.
AfterUpdate
event puts
selected ClassNo
in the ClassNo
table.
Attendances are recorded
within the Register table.
Class Day probably
better as a single
digit 1-7, linked to a
separate ClassDay
lookup table.
This is a simple list of numbers 1 – 10.
It would be better in a table with week
start date as well.
AttendanceRegister1 example database- explanationof how it works
attendanceregister1-explanationofhowitworks-210909160645 Page 3 of 5
AttendanceRegister
A tabular form, based on the AttendanceRegister query, thus ultimately bound to the Attendance table.
This query shows all values on the wk1-10 boxes for all Pupils registered for the class selected on the
ChooseClass form. It uses all three tables with normal Inner Joins (the default Access join).
The form AllowAdditions property has been set to No to remove the new record row at the end of the data.
The form shows all attendances at once, with the percentage attendance so far.
User clicks on the wk1-10 box to record/remove attendance.
The two percentage values are calculated in unbound textboxes.
 A checkbox can contain one of two numeric values:
o 0 = False/No (no tick)
o -1 = True/Yes (tick)
 The formulae in these textboxes add up the values in the check boxes for the row.
 As the sum will either be zero (if there are no ticks in the row) or a negative number (if there is at least
one tick in the row) the ABS function is used to remove the negative sign and get the absolute value of
the total attendances (e.g. 3 ticks adds up to -3, and ABS(-3) = 3).
 The percentage so far uses the week number entered in the ChooseClass form; this is assumed to be
the current week.
 The percentage for all weeks is out of 10 possible attendances.
See the AttendanceRegister2 example database for how to check if there are any pupils registered on the
chosen class. If there are no Pupils for the Class, the detail section of the form is blank.
Pupil and Class details shown Locked,
and with other properties changed so
they are obviously not for data entry.
The wk1-10 boxes are disabled initially.
In the Form_Load event the column for the week no specified on the
ChooseClass form is enabled and the column heading font is shown as
red. This shows the user which column is to be used for the current
register and avoids inadvertent changes to attendance for other weeks.
AttendanceRegister1 example database- explanationof how it works
attendanceregister1-explanationofhowitworks-210909160645 Page 4 of 5
ChoosePupil
Very simple form, to select a pupil and see the attendance record (with a percentage attendance for each
class) across classes as supplied by the PupilAttendance query.
The PupilAttendance query is an inner join query selecting values from all three tables.
The Total and Percentage columns are calculated fields:
 The Total uses the ABS function to add up the ticked check boxes.
 The Percentage is calculated by using Total and the week number entered on the ChoosePupil form.
See section 3.6 of the ‘Getting Started’ VBA Trainer for more information on how to code for list boxes on
forms.
See the AttendanceRegister2 example database for how to allow the user to select all pupils or just one
pupil.
List box
based on
Pupil table,
sorted by
name.
Current week no is used
to calculate percentage
attendance so far.
AttendanceRegister1 example database- explanationof how it works
attendanceregister1-explanationofhowitworks-210909160645 Page 5 of 5
PupilAttendanceAll_Crosstab
This is currently a stand-alone query, and shows the attendances of all Pupils in the database across the
modules for which they are registered.
Pupils who are not registered for any module will not show; you will need to use an Outer Join query for that.
The Crosstab query is based on the PupilAttendanceAll query, which…:
 …selects pupil and class details
 …concatenates the class details into one field for the Crosstab column heading
 …has a calculated field using the ABS function to add up total attendances.
The sort order has been added afterwards.
Saving query results
Query dynasets can be saved to a spreadsheet if wanted. This can be done by simple copy-and-paste for
users who know how to do this, or via VBA code with DoCmd.TransferSpreadsheet. This is very easy to use,
and there is some discussion of it with an example in the ‘Getting Started’ VBA Trainer, section 7.3.5.
More information on using a Crosstab query
See the ‘Getting Started’ VBA Trainer, section 8.4.
End of notes.

More Related Content

What's hot

Sample K12 Interactive Reports From Datagoodies
Sample K12 Interactive Reports From DatagoodiesSample K12 Interactive Reports From Datagoodies
Sample K12 Interactive Reports From Datagoodiesdatagoodies
 
SSA Telengana TOER Workshop Resource Book April , 2015 from IT for Change
SSA Telengana TOER Workshop Resource Book April , 2015 from IT for ChangeSSA Telengana TOER Workshop Resource Book April , 2015 from IT for Change
SSA Telengana TOER Workshop Resource Book April , 2015 from IT for ChangeKarnataka OER
 
Relational database design unit(v)
Relational database design unit(v)Relational database design unit(v)
Relational database design unit(v)PadmapriyaA6
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationNickkisha Farrell
 
Machine learning - session 2
Machine learning - session 2Machine learning - session 2
Machine learning - session 2Luis Borbon
 
Math Transfer Student Data
Math Transfer Student DataMath Transfer Student Data
Math Transfer Student DataD Houseman
 
Clinplus data management dashboard feature preview
Clinplus data management dashboard feature previewClinplus data management dashboard feature preview
Clinplus data management dashboard feature previewdocward222
 
Introduction to spss 1
Introduction to spss 1Introduction to spss 1
Introduction to spss 1Michael Taiwo
 
Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics Ezzeldin M. T. Ali
 
Ibm spss statistics 19 brief guide
Ibm spss statistics 19 brief guideIbm spss statistics 19 brief guide
Ibm spss statistics 19 brief guideMarketing Utopia
 
Data processing and analysis final
Data processing and analysis finalData processing and analysis final
Data processing and analysis finalAkul10
 

What's hot (19)

Week 7 spss
Week 7 spssWeek 7 spss
Week 7 spss
 
Sample K12 Interactive Reports From Datagoodies
Sample K12 Interactive Reports From DatagoodiesSample K12 Interactive Reports From Datagoodies
Sample K12 Interactive Reports From Datagoodies
 
Ps Data Exporting
Ps Data ExportingPs Data Exporting
Ps Data Exporting
 
Normalization
NormalizationNormalization
Normalization
 
Session02
Session02Session02
Session02
 
SSA Telengana TOER Workshop Resource Book April , 2015 from IT for Change
SSA Telengana TOER Workshop Resource Book April , 2015 from IT for ChangeSSA Telengana TOER Workshop Resource Book April , 2015 from IT for Change
SSA Telengana TOER Workshop Resource Book April , 2015 from IT for Change
 
SPSS
SPSSSPSS
SPSS
 
Relational database design unit(v)
Relational database design unit(v)Relational database design unit(v)
Relational database design unit(v)
 
Spss beginners
Spss beginnersSpss beginners
Spss beginners
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - Normalization
 
Machine learning - session 2
Machine learning - session 2Machine learning - session 2
Machine learning - session 2
 
Spss
SpssSpss
Spss
 
Fundamental of SPSS
Fundamental of SPSSFundamental of SPSS
Fundamental of SPSS
 
Math Transfer Student Data
Math Transfer Student DataMath Transfer Student Data
Math Transfer Student Data
 
Clinplus data management dashboard feature preview
Clinplus data management dashboard feature previewClinplus data management dashboard feature preview
Clinplus data management dashboard feature preview
 
Introduction to spss 1
Introduction to spss 1Introduction to spss 1
Introduction to spss 1
 
Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics
 
Ibm spss statistics 19 brief guide
Ibm spss statistics 19 brief guideIbm spss statistics 19 brief guide
Ibm spss statistics 19 brief guide
 
Data processing and analysis final
Data processing and analysis finalData processing and analysis final
Data processing and analysis final
 

Similar to Attendance register1 explanation of how it works

Customer TableInventory TableOrders Table.docx
Customer TableInventory TableOrders Table.docxCustomer TableInventory TableOrders Table.docx
Customer TableInventory TableOrders Table.docxfaithxdunce63732
 
final home work for database.DS_Store__MACOSXfinal home wo.docx
final home work for database.DS_Store__MACOSXfinal home wo.docxfinal home work for database.DS_Store__MACOSXfinal home wo.docx
final home work for database.DS_Store__MACOSXfinal home wo.docxmydrynan
 
Empowerment Technologies - Module 5
Empowerment Technologies - Module 5Empowerment Technologies - Module 5
Empowerment Technologies - Module 5Jesus Rances
 
Seminar on school management system
Seminar  on school  management systemSeminar  on school  management system
Seminar on school management systemRohitPandey254
 
Umuc hrmd610-week-11-assignment-3
Umuc hrmd610-week-11-assignment-3Umuc hrmd610-week-11-assignment-3
Umuc hrmd610-week-11-assignment-3071241345
 
Case21v10 first class
Case21v10 first classCase21v10 first class
Case21v10 first classMartybuster
 
Student Administration System
Student Administration SystemStudent Administration System
Student Administration Systemijtsrd
 
1 Week 6 - What Well Be Working On This Week In th.docx
1 Week 6 - What Well Be Working On This Week  In th.docx1 Week 6 - What Well Be Working On This Week  In th.docx
1 Week 6 - What Well Be Working On This Week In th.docxdorishigh
 
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docxOffice 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docxcherishwinsland
 
Week 5 Break-even Analysis Assignment Guidelines with Scoring R.docx
Week 5 Break-even Analysis Assignment Guidelines with Scoring R.docxWeek 5 Break-even Analysis Assignment Guidelines with Scoring R.docx
Week 5 Break-even Analysis Assignment Guidelines with Scoring R.docxhelzerpatrina
 
MS-EXCEL Assignment Help
MS-EXCEL Assignment HelpMS-EXCEL Assignment Help
MS-EXCEL Assignment HelpRahul Kataria
 
FIN 320 Module Four Excel Assignment Rubric This assign.docx
FIN 320 Module Four Excel Assignment Rubric  This assign.docxFIN 320 Module Four Excel Assignment Rubric  This assign.docx
FIN 320 Module Four Excel Assignment Rubric This assign.docxssuser454af01
 
Student Progress Report, Result Analysis & Time Table Generation
Student Progress Report, Result Analysis & Time Table GenerationStudent Progress Report, Result Analysis & Time Table Generation
Student Progress Report, Result Analysis & Time Table GenerationIRJET Journal
 

Similar to Attendance register1 explanation of how it works (20)

Circular
CircularCircular
Circular
 
Education case study(datawarehouse )
Education  case study(datawarehouse )Education  case study(datawarehouse )
Education case study(datawarehouse )
 
Final Project Paper
Final Project PaperFinal Project Paper
Final Project Paper
 
Customer TableInventory TableOrders Table.docx
Customer TableInventory TableOrders Table.docxCustomer TableInventory TableOrders Table.docx
Customer TableInventory TableOrders Table.docx
 
final home work for database.DS_Store__MACOSXfinal home wo.docx
final home work for database.DS_Store__MACOSXfinal home wo.docxfinal home work for database.DS_Store__MACOSXfinal home wo.docx
final home work for database.DS_Store__MACOSXfinal home wo.docx
 
Database use
Database useDatabase use
Database use
 
Empowerment Technologies - Module 5
Empowerment Technologies - Module 5Empowerment Technologies - Module 5
Empowerment Technologies - Module 5
 
Connecting to the StatXplore API in PowerBI
Connecting to the StatXplore API in PowerBIConnecting to the StatXplore API in PowerBI
Connecting to the StatXplore API in PowerBI
 
Seminar on school management system
Seminar  on school  management systemSeminar  on school  management system
Seminar on school management system
 
Umuc hrmd610-week-11-assignment-3
Umuc hrmd610-week-11-assignment-3Umuc hrmd610-week-11-assignment-3
Umuc hrmd610-week-11-assignment-3
 
Case21v10 first class
Case21v10 first classCase21v10 first class
Case21v10 first class
 
Student Administration System
Student Administration SystemStudent Administration System
Student Administration System
 
1 Week 6 - What Well Be Working On This Week In th.docx
1 Week 6 - What Well Be Working On This Week  In th.docx1 Week 6 - What Well Be Working On This Week  In th.docx
1 Week 6 - What Well Be Working On This Week In th.docx
 
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docxOffice 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
 
Week 5 Break-even Analysis Assignment Guidelines with Scoring R.docx
Week 5 Break-even Analysis Assignment Guidelines with Scoring R.docxWeek 5 Break-even Analysis Assignment Guidelines with Scoring R.docx
Week 5 Break-even Analysis Assignment Guidelines with Scoring R.docx
 
MS-EXCEL Assignment Help
MS-EXCEL Assignment HelpMS-EXCEL Assignment Help
MS-EXCEL Assignment Help
 
FIN 320 Module Four Excel Assignment Rubric This assign.docx
FIN 320 Module Four Excel Assignment Rubric  This assign.docxFIN 320 Module Four Excel Assignment Rubric  This assign.docx
FIN 320 Module Four Excel Assignment Rubric This assign.docx
 
Assignment#11
Assignment#11Assignment#11
Assignment#11
 
Lect10
Lect10Lect10
Lect10
 
Student Progress Report, Result Analysis & Time Table Generation
Student Progress Report, Result Analysis & Time Table GenerationStudent Progress Report, Result Analysis & Time Table Generation
Student Progress Report, Result Analysis & Time Table Generation
 

Recently uploaded

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 

Recently uploaded (20)

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 

Attendance register1 explanation of how it works

  • 1. AttendanceRegister1 example database- explanationof how it works attendanceregister1-explanationofhowitworks-210909160645 Page 1 of 5 General Notes This very simple database records attendances for each class and week no. It assumes that each class runs a fixed number of times (10 in this example) so may not be that flexible. The object general properties (check Access Help if you don’t know what these are) of each table, query and form have been filled in to provide documentation on the purpose of each object. Read these for further information. The database was created following ideas from helping a Placement and a FY Project student, both creating school Attendance Register databases. It demonstrates a method of recording and analysing attendances. It does not allow for Class Year or any other such refinements that may be needed in a full system. Contents Tables and Relationships Forms ChooseClass AttendanceRegister ChoosePupil Links to the queries AttendanceRegister PupilAttendance PupilAttendanceAll PupilAttendanceAll_Crosstab Saving query results More information on using a Crosstab query
  • 2. AttendanceRegister1 example database- explanationof how it works attendanceregister1-explanationofhowitworks-210909160645 Page 2 of 5 Tables and Relationships There are just three data tables in this example. More tables would be needed in a full-blown system. See section 3.6 of the ‘Getting Started’ VBA Trainer for how to use VBA code with combo boxes such as the Ethnicity combo box. Forms ChooseClass An unbound form. Opens AttendanceRegister form. These textboxes have values put in when a class is chosen from the Class combo box (see AfterUpdate event). Based on Class table, ordered by Class Details. AfterUpdate event puts selected ClassNo in the ClassNo table. Attendances are recorded within the Register table. Class Day probably better as a single digit 1-7, linked to a separate ClassDay lookup table. This is a simple list of numbers 1 – 10. It would be better in a table with week start date as well.
  • 3. AttendanceRegister1 example database- explanationof how it works attendanceregister1-explanationofhowitworks-210909160645 Page 3 of 5 AttendanceRegister A tabular form, based on the AttendanceRegister query, thus ultimately bound to the Attendance table. This query shows all values on the wk1-10 boxes for all Pupils registered for the class selected on the ChooseClass form. It uses all three tables with normal Inner Joins (the default Access join). The form AllowAdditions property has been set to No to remove the new record row at the end of the data. The form shows all attendances at once, with the percentage attendance so far. User clicks on the wk1-10 box to record/remove attendance. The two percentage values are calculated in unbound textboxes.  A checkbox can contain one of two numeric values: o 0 = False/No (no tick) o -1 = True/Yes (tick)  The formulae in these textboxes add up the values in the check boxes for the row.  As the sum will either be zero (if there are no ticks in the row) or a negative number (if there is at least one tick in the row) the ABS function is used to remove the negative sign and get the absolute value of the total attendances (e.g. 3 ticks adds up to -3, and ABS(-3) = 3).  The percentage so far uses the week number entered in the ChooseClass form; this is assumed to be the current week.  The percentage for all weeks is out of 10 possible attendances. See the AttendanceRegister2 example database for how to check if there are any pupils registered on the chosen class. If there are no Pupils for the Class, the detail section of the form is blank. Pupil and Class details shown Locked, and with other properties changed so they are obviously not for data entry. The wk1-10 boxes are disabled initially. In the Form_Load event the column for the week no specified on the ChooseClass form is enabled and the column heading font is shown as red. This shows the user which column is to be used for the current register and avoids inadvertent changes to attendance for other weeks.
  • 4. AttendanceRegister1 example database- explanationof how it works attendanceregister1-explanationofhowitworks-210909160645 Page 4 of 5 ChoosePupil Very simple form, to select a pupil and see the attendance record (with a percentage attendance for each class) across classes as supplied by the PupilAttendance query. The PupilAttendance query is an inner join query selecting values from all three tables. The Total and Percentage columns are calculated fields:  The Total uses the ABS function to add up the ticked check boxes.  The Percentage is calculated by using Total and the week number entered on the ChoosePupil form. See section 3.6 of the ‘Getting Started’ VBA Trainer for more information on how to code for list boxes on forms. See the AttendanceRegister2 example database for how to allow the user to select all pupils or just one pupil. List box based on Pupil table, sorted by name. Current week no is used to calculate percentage attendance so far.
  • 5. AttendanceRegister1 example database- explanationof how it works attendanceregister1-explanationofhowitworks-210909160645 Page 5 of 5 PupilAttendanceAll_Crosstab This is currently a stand-alone query, and shows the attendances of all Pupils in the database across the modules for which they are registered. Pupils who are not registered for any module will not show; you will need to use an Outer Join query for that. The Crosstab query is based on the PupilAttendanceAll query, which…:  …selects pupil and class details  …concatenates the class details into one field for the Crosstab column heading  …has a calculated field using the ABS function to add up total attendances. The sort order has been added afterwards. Saving query results Query dynasets can be saved to a spreadsheet if wanted. This can be done by simple copy-and-paste for users who know how to do this, or via VBA code with DoCmd.TransferSpreadsheet. This is very easy to use, and there is some discussion of it with an example in the ‘Getting Started’ VBA Trainer, section 7.3.5. More information on using a Crosstab query See the ‘Getting Started’ VBA Trainer, section 8.4. End of notes.