S
scottyboyb
I have an Invoice Report. It draws it's data from two forms. One is the
"Clients" form with the "Clients Subform". The Clients form does as it's name
implies, providing client data. The subform provides project info like
project name, labor hours worked, labor dollars owed, payments made and
amount due.
The second form, "Print Invoice" form is opened from the clients form and
provides basic project info plus it asks for an invoice description and start
and end date parameters. The subform contains total hours, total hourly
billing, total expenses and amount due. That data is summarozed on the print
invoice main forma nd that is where the fieldnames come from for the report.
A button on the second form opens a preview of the invoice report.
I have checked and rechecked the field names and I cannot find an error. I
should also tell you that I am getting the right numbers on the totals that
do work.
Please let me know if I need to give you more info.
Here is what I am getting on the Report.
Invoice report has 3 subreports: time, expense and payments.
Invoice Report Total Due field . . .
Was:
Forms![Print Invoice]![Total Expenses]+Forms![Print Invoice]![Total Hourly
Billings]
Changed to this when I added the payments subreport:
=sum(Forms![Print Invoice]![Total Expenses]+Forms![Print Invoice]![Total
Hourly Billings]-Forms![Clients]![Clients Subform]![Total Payments])
***Both Work perfectly!***
Time Subreport Total Billed field. . .
was & is:
[BillableHours]*[BillingRate]
***Works perfectly!***
Problems are in the following fields:
Expenses Subreport Expense Amount field . . .
was:
Forms![Print Invoice]![Total Expenses]
changed to:
iif(Forms![Print Invoice]![Total Expenses].HasData,Forms![Print
Invoice]![Total Expenses],0)
***Get this error - #Name?***
if changed to:
=sum(iif(Forms![Print Invoice]![Total Expenses].HasData,Forms![Print
Invoice]![Total Expenses],0))
***$0.00 even when there is data*** and I get an "enter parameter value"
popup window before the form loads for Forms!Print Invoice!Total
Expenses.HasData
Payment Subreport Payment Amount field . . .
was:
Forms![Clients]![Clients Subform]![Total Payments]
changed to:
=iif(Forms![Clients]![Clients Subform]![Total
Payments].HasData,Forms![Clients]![Clients Subform]![Total Payments],0)
***#Name?***
=sum(iif(Forms![Clients]![Clients Subform]![Total
Payments].HasData,Forms![Clients]![Clients Subform]![Total Payments],0))
***$0.00 even when there is data*** and I get an "enter parameter value"
popup window before the form loads for Forms!Clients!Clients Subform!Total
Many thanks,
Scott B
"Clients" form with the "Clients Subform". The Clients form does as it's name
implies, providing client data. The subform provides project info like
project name, labor hours worked, labor dollars owed, payments made and
amount due.
The second form, "Print Invoice" form is opened from the clients form and
provides basic project info plus it asks for an invoice description and start
and end date parameters. The subform contains total hours, total hourly
billing, total expenses and amount due. That data is summarozed on the print
invoice main forma nd that is where the fieldnames come from for the report.
A button on the second form opens a preview of the invoice report.
I have checked and rechecked the field names and I cannot find an error. I
should also tell you that I am getting the right numbers on the totals that
do work.
Please let me know if I need to give you more info.
Here is what I am getting on the Report.
Invoice report has 3 subreports: time, expense and payments.
Invoice Report Total Due field . . .
Was:
Forms![Print Invoice]![Total Expenses]+Forms![Print Invoice]![Total Hourly
Billings]
Changed to this when I added the payments subreport:
=sum(Forms![Print Invoice]![Total Expenses]+Forms![Print Invoice]![Total
Hourly Billings]-Forms![Clients]![Clients Subform]![Total Payments])
***Both Work perfectly!***
Time Subreport Total Billed field. . .
was & is:
[BillableHours]*[BillingRate]
***Works perfectly!***
Problems are in the following fields:
Expenses Subreport Expense Amount field . . .
was:
Forms![Print Invoice]![Total Expenses]
changed to:
iif(Forms![Print Invoice]![Total Expenses].HasData,Forms![Print
Invoice]![Total Expenses],0)
***Get this error - #Name?***
if changed to:
=sum(iif(Forms![Print Invoice]![Total Expenses].HasData,Forms![Print
Invoice]![Total Expenses],0))
***$0.00 even when there is data*** and I get an "enter parameter value"
popup window before the form loads for Forms!Print Invoice!Total
Expenses.HasData
Payment Subreport Payment Amount field . . .
was:
Forms![Clients]![Clients Subform]![Total Payments]
changed to:
=iif(Forms![Clients]![Clients Subform]![Total
Payments].HasData,Forms![Clients]![Clients Subform]![Total Payments],0)
***#Name?***
=sum(iif(Forms![Clients]![Clients Subform]![Total
Payments].HasData,Forms![Clients]![Clients Subform]![Total Payments],0))
***$0.00 even when there is data*** and I get an "enter parameter value"
popup window before the form loads for Forms!Clients!Clients Subform!Total
Many thanks,
Scott B