isladogs
Access MVP / VIP
- Local time
- Today, 23:37
- Joined
- Jan 14, 2017
- Messages
- 19,391
Oops! I made a silly mistake on post #17 which I've just corrected!
It should of course have read
If the CF is done using code rather than the wizard, the CF code would be included in 'the rest of your code here'.
Otherwise, it might be the Form_Load event - but it depends on when the CF wizard code is applied . The TimetableViewer form shown is used for students, teachers & teaching assistants. Different code is used depending on which 'type of' timetable is involved. An array with the appropriate number of lesson for each day is 'built', populated & formatted.
For example:
Each of those 5 code lines loads a separate procedure with the last three applying different formatting depending on the circumstances.
Not sure whether that makes things any clearer
It should of course have read
Code:
Application.Echo False
'the rest of your code here
Application.Echo True
If the CF is done using code rather than the wizard, the CF code would be included in 'the rest of your code here'.
Otherwise, it might be the Form_Load event - but it depends on when the CF wizard code is applied . The TimetableViewer form shown is used for students, teachers & teaching assistants. Different code is used depending on which 'type of' timetable is involved. An array with the appropriate number of lesson for each day is 'built', populated & formatted.
For example:
Code:
Private Sub PupilTimetable()
On Error GoTo Err_Handler
'loads pupil timetable onto screen
EmptySlots
PopulateTimetableArrayPupil
FormatNonTimetabledLessons 'CR v4589W
FormatTimetabledLessons 'CR v4589W
FormatSupportedLessons
Exit_Handler:
Exit Sub
Err_Handler:
'create error message & log
strProc = Application.VBE.ActiveCodePane.CodeModule.ProcOfLine(Application.VBE.ActiveCodePane.TopLine, 0)
PopulateErrorLog
Resume Exit_Handler
End Sub
Each of those 5 code lines loads a separate procedure with the last three applying different formatting depending on the circumstances.
Not sure whether that makes things any clearer