This question is locked. New answers and comments are not allowed.
I have an Open Access data source which gives me an error when I try to combine two conditions on the same field. I need to filter to only projects which have a status >=25 and <=40
line 1:132: unexpected char: '@'
line 1:132: unexpected char: '@'
Original Query: DEFINE
EXTENT xt FOR SQ.OpenAccess.Project; SELECT * FROM xt AS this WHERE
this.Rep == $1 AND this.Status >= $2 AND this.Status <= @Status
Here is the code which was generated by the wizard.
<
telerik:OpenAccessDataSource
ID
=
"OpenAccessDataSource1"
runat
=
"server"
ObjectContextProvider="SQ.OpenAccess.EntitiesModel, SQ.OpenAccess"
onselecting="OpenAccessDataSource1_Selecting" TypeName="SQ.OpenAccess.Project"
Where="this.Rep == @Rep AND this.Status >= @Status AND this.Status <= @Status">
<
whereparameters
>
<
asp:QueryStringParameter
DefaultValue
=
"1"
Name
=
"Rep"
QueryStringField="USERID" />
<
asp:QueryStringParameter
DefaultValue
=
"25"
Name
=
"Status"
QueryStringField="MInStatus" />
<
asp:QueryStringParameter
DefaultValue
=
"40"
Name
=
"Status"
QueryStringField="MaxStatus" />
</
whereparameters
>
</
telerik:OpenAccessDataSource
>