Dears,
I have a table named Tasks that Contains all the Information about my employee , i am making a Form to open a report based on Employee Name, Tasks done, Date.
but i'm getting error with this code
can u help me figure out where is my error plz

Code:
Private Sub Command20_Click()
Dim sFilter As String
sFilter = ""

If Me.Name.ListIndex <> -1 Then
    If sFilter
...