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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#Error Message in Form

Status
Not open for further replies.

rogerarce

Technical User
Jan 24, 2002
57
CR
I have a query that creates a table. I have a subform linked to this table. The form where I have this subform
has a sum field. The problem is that when this subform does
not have information and does not display any value or
field, I get a #error message where I needed to be a zero value at least. This is the code I have in the sum field:
=Sum(nz([Amountowned],0)).
I hope you understand my question.

Thanks in advanced.

Roger
 
I would set the field using an event - say on update of the critical value. The write code that says

me.[SumField] = SUM(.......)

Rollie E
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top