Hi
I'm trying to create a form that, with a on the fly query will show on the report the result of a research the user will have done.
On my report I have a report and a subreport.
For the moment I,m doing my query like that :
...
Else
Select Case Me.opt1.Value
Case 1
strId1 = "Like '*" & txt1.Value & "*'"
End select
End if
strFilter = " [IdEngagementA] " & strId1
With Reports![test1]
.Filter = strFilter
.FilterOn = True
End With
End Sub
The problem is that I can't manage to make a select with condition and toss it to the report and the subreport. I can only do a like which doesn't allow me to choose the data I want correctly. Can someone help me?
I'm trying to create a form that, with a on the fly query will show on the report the result of a research the user will have done.
On my report I have a report and a subreport.
For the moment I,m doing my query like that :
...
Else
Select Case Me.opt1.Value
Case 1
strId1 = "Like '*" & txt1.Value & "*'"
End select
End if
strFilter = " [IdEngagementA] " & strId1
With Reports![test1]
.Filter = strFilter
.FilterOn = True
End With
End Sub
The problem is that I can't manage to make a select with condition and toss it to the report and the subreport. I can only do a like which doesn't allow me to choose the data I want correctly. Can someone help me?