My MDB is of 35mb at this stage. Now I am sending my code. But all the
statements couldnt be written here. You please guess all of them through your
expart knowledge, the number of which is 245.
Private Sub Command15_Click()
If IsNull(Me.AS1) Then
MsgBox "You must put keywords or phrases at least at the first two boxes. "
ElseIf IsNull(Me.AS2) Then
MsgBox "You must put keywords or phrases at least at the first two boxes. "
'Got values of five combos at once
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Title") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1a", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1b", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1c", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Title") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1d", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1e", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1f", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Title") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1g", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1h", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq1i", "", , acNormal
'Got values of five combos at once
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2a", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2b", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2c", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2d", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2e", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2f", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2g", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2h", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq2i", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Title") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3a", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3b", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3c", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Title") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3d", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3e", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3f", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Title") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3g", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3h", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq3i", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4a", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4b", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4c", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4d", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4e", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4f", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4g", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4h", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq4i", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Author") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5a", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5b", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5c", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Author") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5d", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5e", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5f", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Author") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5g", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5h", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "Document", acNormal, "Asq5i", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Author") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6a", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6b", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "And") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6c", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Author") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6d", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6e", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Or") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6f", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Author") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6g", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6h", "", , acNormal
ElseIf (C5 = "Author") And (C2 = "Not") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq6i", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Author") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7a", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7b", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7c", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Author") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7d", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7e", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7f", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Author") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7g", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7h", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq7i", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8a", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8b", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8c", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8d", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8e", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8f", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8g", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8h", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq8i", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Author") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9a", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9b", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9c", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Author") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9d", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9e", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9f", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Author") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9g", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9h", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq9i", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10a", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10b", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10c", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10d", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10e", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10f", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Subject") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10g", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10h", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Subject") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq10i", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Title") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11a", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11b", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11c", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Title") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11d", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Title") And (C3 = "Or") And
(C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11e", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11f", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Title") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11g", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11h", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "Document", acNormal, "Asq11i", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Title") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12a", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12b", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "And") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12c", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Title") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12d", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Title") And (C3 = "Or") And
(C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12e", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Or") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12f", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Title") And (C3 = "And")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12g", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12h", "", , acNormal
ElseIf (C5 = "Title") And (C2 = "Not") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Subject") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq12i", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Title") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13a", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13b", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13c", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Title") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13d", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13e", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13f", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Title") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13g", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13h", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq13i", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Title") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14a", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14b", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14c", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Title") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14d", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14e", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14f", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Title") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14g", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Title") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14h", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Title") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq14i", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Author") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15a", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15b", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Author") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15c", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Author") And (C3 = "And")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15d", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15e", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15f", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Author") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15g", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15h", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Author") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq15i", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Author") And (C3 =
"And") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16a", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16b", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Author") And (C3 =
"Not") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16c", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Author") And (C3 = "And")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16d", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16e", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Author") And (C3 = "Not")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16f", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Author") And (C3 =
"And") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16g", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Author") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16h", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Author") And (C3 =
"Not") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq16i", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17a", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Subject") And (C3 =
"Or") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17b", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17c", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17d", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17e", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17f", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17g", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"Or") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17h", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Author") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq17i", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18a", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Subject") And (C3 =
"Or") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18b", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "And") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18c", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18d", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Subject") And (C3 = "Or")
And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18e", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Or") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18f", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"And") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18g", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"Or") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18h", "", , acNormal
ElseIf (C5 = "Subject") And (C2 = "Not") And (C6 = "Subject") And (C3 =
"Not") And (C7 = "Title") Then
DoCmd.OpenForm "SIEQ", acNormal, "Asq18i", "", , acNormal
End If
End Sub
With best regards