Haha, i'm a doofus. I had IFF in my brain for if and only if and kept using that instead of iif.
Also, because i was using version 12 of the Microsoft Access Driver, i don't think the BDE was able to interpret the error messages correctly so it was just giving me read access violations...