P
Pepsi Girl & Petree
A friend and I are learning these functions in our computer class and our
teacher has no clue what he's doing. So if anyone could help us it would help
out a lot.
So we have to make an Update Query to update a field using the IIf function
with the following specifications. We have to divide "Street No" field by 2
then multiply that result by 10 (here's when we get lost) then we are
supposed to use the "Right" function to select the units position of the
resultant value. Then Compare to see if the result is equal "0". The truepart
is "even" and falspart is "odd". So here is what we have:
IIf(Right((RegTbl![Street No]/2)*10,0),"Even","Odd")
So when we do this and run it everything comes out even because of the zero
after the 10. Our question is if that's not supposed to be a zero what number
should it be and where would we put the comparing to zero part? Any help
would be most appreciated.
Thanks!
Pepsi Girl & Petree
teacher has no clue what he's doing. So if anyone could help us it would help
out a lot.
So we have to make an Update Query to update a field using the IIf function
with the following specifications. We have to divide "Street No" field by 2
then multiply that result by 10 (here's when we get lost) then we are
supposed to use the "Right" function to select the units position of the
resultant value. Then Compare to see if the result is equal "0". The truepart
is "even" and falspart is "odd". So here is what we have:
IIf(Right((RegTbl![Street No]/2)*10,0),"Even","Odd")
So when we do this and run it everything comes out even because of the zero
after the 10. Our question is if that's not supposed to be a zero what number
should it be and where would we put the comparing to zero part? Any help
would be most appreciated.
Thanks!
Pepsi Girl & Petree