I am finding this quite difficult to read (not your fault, of course, just
the language barrier) but I think the problem is that the IIf expression is
in the WHERE clause. If you don't want the expression to limit the rows
that are returned, it should be in the SELECT clause. It might look
something like ...
SELECT [?????? ?????????? 1?? ?????????].??????, [?????? ?????????? 1??
?????????].[????????????? ?????????], [?????? ?????????? 1??
?????????].???,
[?????? ?????????? 1?? ?????????].Expr2, IIf([?????? ?????????? 1??
?????????]![Expr2]>10,10,[?????? ?????????? 1?? ?????????]![Expr2] AS
Whatever
FROM [?????? ?????????? 1?? ?????????];
In query design view, you would enter the expression in a new column, in
the Field row, not in the criteria row, looking something like ...
Whatever: IIf([?????? ?????????? 1?? ?????????]![Expr2]>10,10,[??????
?????????? 1?? ?????????]![Expr2]
... replacing "Whatever" with what ever title you want to give to the
calculated column.
--
Brendan Reynolds (MVP)
AndreasM said:
Dear Brendan,
I would like to thank you for all your time to spend to help me....
So I paste the code ouf the Quirre:
SELECT [?????? ?????????? 1?? ?????????].??????, [?????? ?????????? 1??
?????????].[????????????? ?????????], [?????? ?????????? 1??
?????????].???,
[?????? ?????????? 1?? ?????????].Expr2
FROM [?????? ?????????? 1?? ?????????]
WHERE ((([?????? ?????????? 1?? ?????????].Expr2)=IIf([?????? ??????????
1??
?????????]![Expr2]>10,10,[?????? ?????????? 1?? ?????????]![Expr2])));
I hope the greek not be problem to understand the good.Also i would like
to
inform you that i create a new qyertry which i have inside all the fields
of
the previous querrie, because if i paste here the first querriy you may
be
see a mess...Also this querriy continues to present only the results wich
is
under ten...So read the code and please try to find something!!!!