G
Guest
I'm trying to compare a value in an array and assign the value a numeric
score. For some reason, my query is returning no records, but I can use
similar code in other places and it works. See the SQL below. Any help
would be appreciated.
SELECT qry_Rating5.SubProcess, qry_Rating5.SORT,
IIf(qry_Rating5!SORT>=tbl_sort!Low And
qry_Rating5!SORT<=tbl_sort!High,tbl_sort!Sort_Score,0) AS Assigned_Sort
FROM qry_Rating5, tbl_Sort
WHERE (((IIf([qry_Rating5]![SORT]>=[tbl_sort]![Low] And
[qry_Rating5]![SORT]<=[tbl_sort]![High],[tbl_sort]![Sort_Score],0))>0));
Thanks,
Melanie
score. For some reason, my query is returning no records, but I can use
similar code in other places and it works. See the SQL below. Any help
would be appreciated.
SELECT qry_Rating5.SubProcess, qry_Rating5.SORT,
IIf(qry_Rating5!SORT>=tbl_sort!Low And
qry_Rating5!SORT<=tbl_sort!High,tbl_sort!Sort_Score,0) AS Assigned_Sort
FROM qry_Rating5, tbl_Sort
WHERE (((IIf([qry_Rating5]![SORT]>=[tbl_sort]![Low] And
[qry_Rating5]![SORT]<=[tbl_sort]![High],[tbl_sort]![Sort_Score],0))>0));
Thanks,
Melanie