I'm trying to apply a filter to report OnOpen. and something is getting wrong :banghead:
I keep getting an error message:
2101 - Setting a wrong property
the GetLakoachID() exist and return a long var
this will return the same error
strFilter = "[LakoachID] = 11615 OR [LakoachRashiID] = 11615 OR [LakoachID] = 11615 "
I keep getting an error message:
2101 - Setting a wrong property
Code:
Private Sub Report_Open(Cancel As Integer)
Dim strFilter As String
strFilter = "[LakoachID] = " & GetLakoachID() & " OR [LakoachRashiID] = " & GetLakoachID() & " OR [LakoachID] = 11615 "
Me.Filter = strFilter
Me.FilterOn = True
End Sub
the GetLakoachID() exist and return a long var
this will return the same error
strFilter = "[LakoachID] = 11615 OR [LakoachRashiID] = 11615 OR [LakoachID] = 11615 "