I have a split form that I am using to filter through records with an unbound text box. I have a field called Project Type that I use to classify different projects. Some of the categories are Wind Damage, Hail Damage, Roof Damage, etc. My code for filtering is below
Private Sub Command34_Click()
Me.Filter = "[Project Type]Like '" & Me.Text32 & "*'"
Me.FilterOn = True
Me.Requery
End Sub
Private Sub Command35_Click()
Me.FilterOn = False
Me.Requery
End Sub
This code works just fine, but my question is if it is possible to add another field called Project Type 2 and filter by that also. To explain further, I can classify project types by more than one category, so I can have a project that can be Hail Damage and Wind Damage. Can I filter through two fields so if I am searching for Hail Damage a record with Hail Damage in the Project Type field will show and also a record with Hail Damage in Project Type 2 would show even though it has something different in the Project Type field. Any help is greatly appreciated.
Private Sub Command34_Click()
Me.Filter = "[Project Type]Like '" & Me.Text32 & "*'"
Me.FilterOn = True
Me.Requery
End Sub
Private Sub Command35_Click()
Me.FilterOn = False
Me.Requery
End Sub
This code works just fine, but my question is if it is possible to add another field called Project Type 2 and filter by that also. To explain further, I can classify project types by more than one category, so I can have a project that can be Hail Damage and Wind Damage. Can I filter through two fields so if I am searching for Hail Damage a record with Hail Damage in the Project Type field will show and also a record with Hail Damage in Project Type 2 would show even though it has something different in the Project Type field. Any help is greatly appreciated.