Hi All,
I am unable to get the following code to open the selected form.
Private Sub cmdOpenSelected_Click()
Dim stDocName As String
Dim stLinkCriteria As String
On Error GoTo Err_cmdOpenSelected_Click
Select Case fraChooseForm.Value
Case Is = 1
stDocName = "frmRisk#1"
Case Is = 2
stDocName = "frmUpdateReviewDates"
End Select
DoCmd.OpenForm stDocName, acNormal, , , stLinkCriteria
...........Rest Of error trapping...........
End sub
I am unable to get the following code to open the selected form.
Private Sub cmdOpenSelected_Click()
Dim stDocName As String
Dim stLinkCriteria As String
On Error GoTo Err_cmdOpenSelected_Click
Select Case fraChooseForm.Value
Case Is = 1
stDocName = "frmRisk#1"
Case Is = 2
stDocName = "frmUpdateReviewDates"
End Select
DoCmd.OpenForm stDocName, acNormal, , , stLinkCriteria
...........Rest Of error trapping...........
End sub