Private Sub Command11_Click()
Dim stDocName As String
If Me.Frame12 = 1 Then
Select Case Frame0
Case 1
stDocName = "R_sdsf"
Case 2
stDocName = "R_sdsfdf"
Case 3
stDocName = "R_sdsfjhkjh"
Case 4
stDocName = "R_sdsftreytr"
End Select
ElseIf Me.Frame12 = 2 Then
Select Case Frame0
Case 1
stDocName = "erwrwet"
Case 2
stDocName = "fchbvc"
Case 3
stDocName = "gfcxh"
Case 4
stDocName = "xgvfds"
End Select
Else
Exit Sub
End If
DoCmd.OpenReport stDocName, acPreview
End Sub