My code in a query is :
IIf([forms]![frmm]![n] Mod 2=1,IIf([forms]![frmm]![first]<[forms]![frmm]![last],"n Or up","s Or up"),IIf([forms]![frmm]![first]<[forms]![frmm]![last],"e Or up","w Or up"))
If n is odd and first is less than last I want the critria in the query to be n Or up,
but if n is odd and first is greater than last then I want the critria to be s Or up,
If n is even and first is less than last I want the critria in the query to be e Or up,
but if n is even and first is greater than last then I want the critria to be w Or up,
I get back nothing or nulls as my answer when there should be records?
does the statement above is it putting n Or up as the critria? because I believe the odd and even is working right?