T
TimothyP
Hi,
For testing purposes I have a very simple database in Access.
Tables:
INVOICE
INVOICELINE
CUSTOMER
Where each INVOICE has one or more INVOICELINES
and each INVOICE has exactly one Customer.
The INVOICE line has the following fields
string Product
double UnitPrice
int Count
double Tax
The database itself does not contain totals.
I managed to create a form in order to create a new INVOICE with
INVOICELINES. It is correctly saved to the database.
(Using a Repeating Table (master section) and a repeating table (detail
section)
which seems to contain a repeating table with the invoice lines
But I want to display the totals on my form.
I manged to display the total price without taxes and with taxes for
every INVOICELINE using an Expression field
I added a footer to the repeating table for the INVOICELINES
There I would like have the following 3 totals
The totals of the unitprice (this works fine with an expression field)
The totals of the price (unitprice * count ... for each INVOICELINE)
The final total for all the INVOICELINES including taxes
These last two I can't seem to do.
I was expecting I'd be able to use the values of the
expression textboxes to count the sum, but that doesn't seem to work.
How can I solve this without adding fields to my database.
I played around with adding text (element) fields but didn't work either.
Thank you.
For testing purposes I have a very simple database in Access.
Tables:
INVOICE
INVOICELINE
CUSTOMER
Where each INVOICE has one or more INVOICELINES
and each INVOICE has exactly one Customer.
The INVOICE line has the following fields
string Product
double UnitPrice
int Count
double Tax
The database itself does not contain totals.
I managed to create a form in order to create a new INVOICE with
INVOICELINES. It is correctly saved to the database.
(Using a Repeating Table (master section) and a repeating table (detail
section)
which seems to contain a repeating table with the invoice lines
But I want to display the totals on my form.
I manged to display the total price without taxes and with taxes for
every INVOICELINE using an Expression field
I added a footer to the repeating table for the INVOICELINES
There I would like have the following 3 totals
The totals of the unitprice (this works fine with an expression field)
The totals of the price (unitprice * count ... for each INVOICELINE)
The final total for all the INVOICELINES including taxes
These last two I can't seem to do.
I was expecting I'd be able to use the values of the
expression textboxes to count the sum, but that doesn't seem to work.
How can I solve this without adding fields to my database.
I played around with adding text (element) fields but didn't work either.
Thank you.