Hello. Can someone help me with a simple IIF statement with 2 conditions? I just have an unbound text box with the following in its control source:
=IIf([ispaid]=Yes And [Balance]>0,"NOT PAID IN FULL!","")
All I want is for NOT PAID IN FULL! to populate the text box if the isPaid check box is checked and the balance text box is greater than 0. When I only have one condition, balance greater than 0, it works. But not with 2 conditions. However, Access doesn't have a problem with accepting the code.
Is the problem that isPaid is a field on the main form and balance (and the host text box) are on the subform of the main form?
I've tried a bunch of things. Nothing's worked.
Thanks in advance!
=IIf([ispaid]=Yes And [Balance]>0,"NOT PAID IN FULL!","")
All I want is for NOT PAID IN FULL! to populate the text box if the isPaid check box is checked and the balance text box is greater than 0. When I only have one condition, balance greater than 0, it works. But not with 2 conditions. However, Access doesn't have a problem with accepting the code.
Is the problem that isPaid is a field on the main form and balance (and the host text box) are on the subform of the main form?
I've tried a bunch of things. Nothing's worked.
Thanks in advance!