Hi all,
I have a field that looks up two values from two fields
and then divides the two values for the answer but of course if one of those values is zero I get the DIV# value, so I am having to check each value to make sure neither one is zero, and if it is then to just insert zero instead of tryign to divide the two fields, but using IIF I am having a nightmare trying to get this to work.
I know for sure the coding is flawed but I cannot for them life of me get it right, do text fields only allow a certain number of characters ? I'm not getting a error message stating that but it looks like my coding is getting out of hand, here is what I have so far:
=IIf(DLookUp("loncount","qry0401Month","type = 'BK30D'"<>0) or iif(DLookUp("loncount","qry0402Month","type = 'BKCur'"<>0,"Yes","NO")
Can anyone please correct me?
Thanks in advance,
Mitch...
I have a field that looks up two values from two fields
and then divides the two values for the answer but of course if one of those values is zero I get the DIV# value, so I am having to check each value to make sure neither one is zero, and if it is then to just insert zero instead of tryign to divide the two fields, but using IIF I am having a nightmare trying to get this to work.
I know for sure the coding is flawed but I cannot for them life of me get it right, do text fields only allow a certain number of characters ? I'm not getting a error message stating that but it looks like my coding is getting out of hand, here is what I have so far:
=IIf(DLookUp("loncount","qry0401Month","type = 'BK30D'"<>0) or iif(DLookUp("loncount","qry0402Month","type = 'BKCur'"<>0,"Yes","NO")
Can anyone please correct me?
Thanks in advance,
Mitch...