error in formula in report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I get Error# when there is no amount for the TotalRequsition in the
following formula:
[StartingAccBalance]-[totalRequisitions]-[TotalPayroll]

Some accounts do not have reqs and others do not have payroll. However some
accounts have both. Any suggestions?

Thanks
 
I get Error# when there is no amount for the TotalRequsition in the
following formula:
[StartingAccBalance]-[totalRequisitions]-[TotalPayroll]

Some accounts do not have reqs and others do not have payroll. However some
accounts have both. Any suggestions?

Thanks

Use the Nz() function.
Nz([StartingAccBalance],0)-Nz([totalRequisitions],0)-Nz([TotalPayroll],0)
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
Can you use this to reference a subreport?

Ex: =NZ([totalPayroll].Form!TotalPayroll,0)

Thanks....

Douglas J. Steele said:
[StartingAccBalance]-Nz([totalRequisitions],0)-Nz([TotalPayroll],0)



--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Donna said:
I get Error# when there is no amount for the TotalRequsition in the
following formula:
[StartingAccBalance]-[totalRequisitions]-[TotalPayroll]

Some accounts do not have reqs and others do not have payroll. However
some
accounts have both. Any suggestions?

Thanks
 
You can't reference a subreport: you'd have to reference a control on the
subreport, but yes, you can do that.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Donna said:
Can you use this to reference a subreport?

Ex: =NZ([totalPayroll].Form!TotalPayroll,0)

Thanks....

Douglas J. Steele said:
[StartingAccBalance]-Nz([totalRequisitions],0)-Nz([TotalPayroll],0)



--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Donna said:
I get Error# when there is no amount for the TotalRequsition in the
following formula:
[StartingAccBalance]-[totalRequisitions]-[TotalPayroll]

Some accounts do not have reqs and others do not have payroll. However
some
accounts have both. Any suggestions?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel - Sliding decreasing scale (payroll tax calc) 2
linking data 2
Help with a formula 2
Need help with formula 10
SUMPRODUCT formula using hours:minutes 12
VLookup in VBA? 5
Unsolicited Emails 12
DSUM Basics 1

Back
Top