loneranger27
Programmer
Hi,
I have a text box with the following in the control source
=round([text29]/count([itemcount])*5),1)
[itemcount] is the number of boxes of that item and there are 5 items in each box.
the problem I am having is that sometimes the count field will should be null so that nothing is counted but when the field is null i get div by 0 error is there a way to tell it that if [itemcount]=0 then itemcount=1 so i dont get a div by 0 error or is there another way.
Any help is appreciated.
Thanks
I have a text box with the following in the control source
=round([text29]/count([itemcount])*5),1)
[itemcount] is the number of boxes of that item and there are 5 items in each box.
the problem I am having is that sometimes the count field will should be null so that nothing is counted but when the field is null i get div by 0 error is there a way to tell it that if [itemcount]=0 then itemcount=1 so i dont get a div by 0 error or is there another way.
Any help is appreciated.
Thanks