Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with sum in form

Status
Not open for further replies.

rogerarce

Technical User
Jan 24, 2002
57
CR
Hi. I have the following problem. I have a form and I have
2 subforms. I made sums calling data from the subforms. Everything works fine. ie
=Forms!inventory![In subform].[Form]![totalIn]
=Forms!inventory![Out subform].[Form]![totalOut]

The problem starts here, in the balance:
=([In])-([Out])

If one of the boxes has a 0 value, it does not show the balance.
I hope you can understand what I try to do. Thanks for your help.
 
I believe the problem might be when one of the boxes is null. If you use =nz([IN],0)-nz([Out],0) it should work the way you want it to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top