R
Rashar S via AccessMonster.com
Hello,
I have a text box that when the query runs, it either returns a value, or
there may not be a value (empty). When the form is displayed, the textbox
reads #Error
Here is my script thus far that returns #Error in my textbox
=IIf([Products_last]<10,"",IIf(IsNull(nz([Products_This],1)*[Products_Last])
Or IsError([Products_This]*[Products_Last]),"",IIf(CLng([Products_Last]*0.8)-
1<11,10,"10-" & CLng([Products_Last]*0.8)-1)))
And this is what I have tried...which will return #Name
=IIf([Products_last] [isnull] OR [Products_last] <10,"",IIf(IsNull(nz(
[Products_This],1)*[Products_Last]) Or IsError([Products_This]*[Products_Last]
),"",IIf(CLng([Products_Last]*0.8)-1<11,10,"10-" & CLng([Products_Last]*0.8)-
1)))
Also.... returns #Name
=IIf([Products_last] [isempty] OR [Products_last] <10,"",IIf(IsNull(nz(
[Products_This],1)*[Products_Last]) Or IsError([Products_This]*[Products_Last]
),"",IIf(CLng([Products_Last]*0.8)-1<11,10,"10-" & CLng([Products_Last]*0.8)-
1)))
Any help is greatly appreciated.
Thanks,
Rashar
I have a text box that when the query runs, it either returns a value, or
there may not be a value (empty). When the form is displayed, the textbox
reads #Error
Here is my script thus far that returns #Error in my textbox
=IIf([Products_last]<10,"",IIf(IsNull(nz([Products_This],1)*[Products_Last])
Or IsError([Products_This]*[Products_Last]),"",IIf(CLng([Products_Last]*0.8)-
1<11,10,"10-" & CLng([Products_Last]*0.8)-1)))
And this is what I have tried...which will return #Name
=IIf([Products_last] [isnull] OR [Products_last] <10,"",IIf(IsNull(nz(
[Products_This],1)*[Products_Last]) Or IsError([Products_This]*[Products_Last]
),"",IIf(CLng([Products_Last]*0.8)-1<11,10,"10-" & CLng([Products_Last]*0.8)-
1)))
Also.... returns #Name
=IIf([Products_last] [isempty] OR [Products_last] <10,"",IIf(IsNull(nz(
[Products_This],1)*[Products_Last]) Or IsError([Products_This]*[Products_Last]
),"",IIf(CLng([Products_Last]*0.8)-1<11,10,"10-" & CLng([Products_Last]*0.8)-
1)))
Any help is greatly appreciated.
Thanks,
Rashar