I am using the following code to set a filter on one of my forms:
Private Sub Form_Open(Cancel As Integer)
'Set unbound textbox = to login name.
Me.LoginName = strUserName
'Apply filter based on Username field.
Me.Filter = "[ReportsTo] = '" & Me.LoginName & "'"
Me.FilterOn = True
End Sub
I need to set another filter for Year. Can I set more than one, if so how? The field is called Year.
Private Sub Form_Open(Cancel As Integer)
'Set unbound textbox = to login name.
Me.LoginName = strUserName
'Apply filter based on Username field.
Me.Filter = "[ReportsTo] = '" & Me.LoginName & "'"
Me.FilterOn = True
End Sub
I need to set another filter for Year. Can I set more than one, if so how? The field is called Year.