G
Guest
-----Original Message-----
Assuming you have tables something like the following:
ExpenseReports
ReportID AutoNumber
EmployeeNumber
DateSubmitted
....
Categories
CategoryID AutoNumber
Category Text (Gas, Hotel, Etc.)
ExpenseDetail
DetailID AutoNumber
ReportID Number (foreign key to ExpenseReports)
Category Number (foreign key to Categories)
Amount Currency
and assuming you have a columnar subform showing the
details placed on a main form, you can display the total
by placing an invisible control in the subform's footer
with source:
=Sum([Amount])
and place a control on the main form referring to it:
=yoursubformname.Form!yourcontrolname
HTH
Kevin Sprinkel
If your situation is different, please post more detail
regarding your table structures and what you'd like to see
in your form.
I am developing a new database. I have a table for
EXPENSE.
How do I set a form to verify.
EXPENSE Total - Breakdown of expenses equals ??.
Expense - GAS+Entertainment+Supplies
100 20 20 60 = 0
Assuming you have tables something like the following:
ExpenseReports
ReportID AutoNumber
EmployeeNumber
DateSubmitted
....
Categories
CategoryID AutoNumber
Category Text (Gas, Hotel, Etc.)
ExpenseDetail
DetailID AutoNumber
ReportID Number (foreign key to ExpenseReports)
Category Number (foreign key to Categories)
Amount Currency
and assuming you have a columnar subform showing the
details placed on a main form, you can display the total
by placing an invisible control in the subform's footer
with source:
=Sum([Amount])
and place a control on the main form referring to it:
=yoursubformname.Form!yourcontrolname
HTH
Kevin Sprinkel
If your situation is different, please post more detail
regarding your table structures and what you'd like to see
in your form.