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

Summing a textbox

Status
Not open for further replies.

myaccess2000

Technical User
Aug 4, 2002
16
0
0
SG
Hi,

I have problem in summing a textbox. The textbox control source contains "=IIf(IsNull([sum_debit]),Sum([debit_amount]),Sum([debit_amount])+[sum_debit])". Due to the condition in the IIF, i could not do it in the query. I have to do the summing in the report.

Would appreciate if someone out there can help me. Thanx!

Regards
 
Stick a 0 in when null and it should sum up okay.

"=Sum(nz([sum_debit],0)),Sum([debit_amount]),Sum([debit_amount])+[sum_debit])".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top