Rem NO Selection Made
If Cnum1 = 24 And Cnum2 = 32 And Cnum3 = 7 And Cnum4 = 9 And Cstr5 = "No Selection" And Cstr6 = "No Selection" Then Case1num = 1
REM 1 item selected, in this case Cnum1
If Cnum1 <> 24 And Cnum2 = 32 And Cnum3 = 7 And Cnum4 = 9 And Cstr5 = "No Selection" And Cstr6 = "No Selection" Then Case1num = 2
...
Case 1 'NO items selected show all records
Case2num = 1
Case 2 '1 Item Selected
FilterNamestr = "[agency] = " & Cnum1
....
Select Case Case2num 'Establish Filter
Case 1 'No Selection Made. Display all records.
Me!TYPE5SUBFRM.Form.FilterOn = False
Me.Text17.Value = DCount("*", "projectnumqry")
FilterNamestr = ""
Case 2 'Selection Made. Display Records through filter.
Me!TYPE5SUBFRM.Form.Filter = FilterNamestr
Me!TYPE5SUBFRM.Form.FilterOn = True
Me.Text17.Value = DCount("*", "type5frmqry", FilterNamestr)
Case Else 'No Matching Case Number
MSG1 = "No matching case statement found. Check the code in Case2num. Case2num = " & Case2num
TITLE1 = "Select Statement Error"
MsgBox MSG1, vbOKOnly, TITLE1
End Select