Your project is a monster. You are trying to tackle too many things at the same time. You are biting off a lot more than you can chew, especially for some one who just started 3 weeks ago with B4X. Learning takes time and you have to suffer like we did. It does not happen overnight. You are using terms like: 'pulling my hair, frustrated, annoyed and many other terms used by someone who is overwhelmed. Your project has close to 25 layouts which makes one's head spin. Dude, slow down and learn one thing at a time. Follow the advice Erel gave you. and break down your project into smaller projects.
Now, let me try to address your problem with your map issue. I hope I got it right:
1. You need to move this line:
records.Initialize away from Private Sub cbStudents_CheckedChange(Checked As Boolean)
2. Move the line here to this below sub:
Code:
Private Sub lblAttendance_Click
records.Initialize ' move this line here
I think for now, that should get you started, but you really need to start slow.