I'm trying to select several different values and it's not working.
In one field "TOT_5" the value is greater than five.
In several other fields, all similar, the value has to be greater than two. It must meet all these conditions.
SELECT BUILDER.*
FROM BUILDER
WHERE (((BUILDER.TOT_B5)>5) And ((BUILDER.YR_B)>2)) Or (((BUILDER.YR_C)>2)) Or (((BUILDER.YR_D)>2)) Or (((BUILDER.YR_E)>2)) Or (((BUILDER.YR_F)>2)) Or (((BUILDER.YR_G)>2)) Or (((BUILDER.YR_H)>2)) Or (((BUILDER.YR_I)>2)) Or (((BUILDER.YR_J)>2)) Or (((BUILDER.YR_K)>2)) Or (((BUILDER.YR_L)>2)) Or (((BUILDER.YR_M)>2)) Or (((BUILDER.YR_n)>2)) Or (((BUILDER.YR_o)>2)) Or (((BUILDER.YR_p)>2)) Or (((BUILDER.YR_q)>2)) Or (((BUILDER.YR_r)>2)) Or (((BUILDER.YR_s)>2));
I have also tried "and" with not much luck.
Bob
In one field "TOT_5" the value is greater than five.
In several other fields, all similar, the value has to be greater than two. It must meet all these conditions.
SELECT BUILDER.*
FROM BUILDER
WHERE (((BUILDER.TOT_B5)>5) And ((BUILDER.YR_B)>2)) Or (((BUILDER.YR_C)>2)) Or (((BUILDER.YR_D)>2)) Or (((BUILDER.YR_E)>2)) Or (((BUILDER.YR_F)>2)) Or (((BUILDER.YR_G)>2)) Or (((BUILDER.YR_H)>2)) Or (((BUILDER.YR_I)>2)) Or (((BUILDER.YR_J)>2)) Or (((BUILDER.YR_K)>2)) Or (((BUILDER.YR_L)>2)) Or (((BUILDER.YR_M)>2)) Or (((BUILDER.YR_n)>2)) Or (((BUILDER.YR_o)>2)) Or (((BUILDER.YR_p)>2)) Or (((BUILDER.YR_q)>2)) Or (((BUILDER.YR_r)>2)) Or (((BUILDER.YR_s)>2));
I have also tried "and" with not much luck.
Bob