Private Sub Form_Load()
DoCmd.ShowToolbar "Ribbon", acToolbarNo 'Hides the toolbar
Set sFrmJan = Me.subFormJan.Form
Set sFrmFeb = Me.SubFormFeb.Form
Set sFrmMar = Me.subformMar.Form
Set sFrmApr = Me.subFormApr.Form
Set sFrmMay = Me.SubFormMay.Form
Set sFrmJun = Me.SubFormJun.Form
Set sFrmJul = Me.subFormJul.Form
Set sFrmAug = Me.subFormAug.Form
Set sFrmSep = Me.subFormSep.Form
Set sFrmOct = Me.SubFormOct.Form
Set sFrmNov = Me.subFormNov.Form
Set sFrmDec = Me.subFormDec.Form
'//Fills the subFomrMonths LblMonth with the appropiate month
sFrmJan.LblMonth.Caption = "January"
sFrmFeb.LblMonth.Caption = "February"
sFrmMar.LblMonth.Caption = "March"
sFrmApr.LblMonth.Caption = "April"
sFrmMay.LblMonth.Caption = "May"
sFrmJun.LblMonth.Caption = "June"
sFrmJul.LblMonth.Caption = "July"
sFrmAug.LblMonth.Caption = "August"
sFrmSep.LblMonth.Caption = "September"
sFrmOct.LblMonth.Caption = "October"
sFrmNov.LblMonth.Caption = "November"
sFrmDec.LblMonth.Caption = "December"
FillCombo 'Fills cboYear combo box
FillAllMonthLabels (Me.cboYear) 'Fills the subFormMonths days for the year based on cboYear
FillAllHolidays Me.cboYear 'Fills the subFormMonths holidays for the year based on cboYear
Me.cboSupervisor.SetFocus 'Sets focus to combobox
End Sub
Private Sub FillAllMonthLabels(TheYear As Integer)
'Used to fill in month labels
mod_FillMonthLabels.FillSubFormMonthLabels sFrmJan, TheYear, 1
mod_FillMonthLabels.FillSubFormMonthLabels sFrmFeb, TheYear, 2
mod_FillMonthLabels.FillSubFormMonthLabels sFrmMar, TheYear, 3
mod_FillMonthLabels.FillSubFormMonthLabels sFrmApr, TheYear, 4
mod_FillMonthLabels.FillSubFormMonthLabels sFrmMay, TheYear, 5
mod_FillMonthLabels.FillSubFormMonthLabels sFrmJun, TheYear, 6
mod_FillMonthLabels.FillSubFormMonthLabels sFrmJul, TheYear, 7
mod_FillMonthLabels.FillSubFormMonthLabels sFrmAug, TheYear, 8
mod_FillMonthLabels.FillSubFormMonthLabels sFrmSep, TheYear, 9
mod_FillMonthLabels.FillSubFormMonthLabels sFrmOct, TheYear, 10
mod_FillMonthLabels.FillSubFormMonthLabels sFrmNov, TheYear, 11
mod_FillMonthLabels.FillSubFormMonthLabels sFrmDec, TheYear, 12
End Sub