I have a feeling that I am using the wrong number of quotes
Yes, you have too many quotes (Before and after the AND).
Code:
'Open'" And "[ECAAssigned]
Try this:
Sample 1:
Code:
Private Sub ECAOpenItems_Click()
Dim usr As String
usr = Environ("UserName")
Me.Filter = "[WIStatus] = 'Open' And [ECAAssigned] = '" & usr & "'"
Me.FilterOn = TRUE ' also need this line
End Sub
Never used this form, but there are too many quotes
Sample 2:
Code:
Private Sub ECAOpenItems_Click()
Dim usr As String
usr = Environ("UserName")
DoCmd.ApplyFilter, "[WIStatus] = 'Open' And [ECAAssigned] = '" & usr & "'"
End Sub