J
Jani
My option group for opening forms works correctly. However, when I open a
form, close the form, and am then back to the page with the option group and
try to reselect the same form, it won't do it. I need to open a different
form, back to the option group page, then can select it. Below is the code
that I have in After Update event. Any help would be much appreciated!
Thanks, Jani
Private Sub MainSwitchboard_AfterUpdate()
Dim strFormName As String
Select Case Me.MainSwitchboard
Case 1
strFormName = "frm_CMMS_NonPMTasks"
Case 2
strFormName = "frm_CMMSPrevMaintTable"
Case 3
strFormName = "frm_CMMS_PMTaskList_AddNew"
Case 4
strFormName = "frm_CMMS_PMTaskList_Maintenance"
Case 5
strFormName = "frm_CMMSMainForm_PMTasks"
Case 6
strFormName = "frm_CMMS_Reports"
End Select
DoCmd.OpenForm strFormName
End Sub
form, close the form, and am then back to the page with the option group and
try to reselect the same form, it won't do it. I need to open a different
form, back to the option group page, then can select it. Below is the code
that I have in After Update event. Any help would be much appreciated!
Thanks, Jani
Private Sub MainSwitchboard_AfterUpdate()
Dim strFormName As String
Select Case Me.MainSwitchboard
Case 1
strFormName = "frm_CMMS_NonPMTasks"
Case 2
strFormName = "frm_CMMSPrevMaintTable"
Case 3
strFormName = "frm_CMMS_PMTaskList_AddNew"
Case 4
strFormName = "frm_CMMS_PMTaskList_Maintenance"
Case 5
strFormName = "frm_CMMSMainForm_PMTasks"
Case 6
strFormName = "frm_CMMS_Reports"
End Select
DoCmd.OpenForm strFormName
End Sub