G
Guest
Team,
I am trying to do the following. I want a user to be able to set up a
calculation template and then reuse this template with live data. Note that I
am not talking about a programmer designing the database. I want to design a
database which would be able to perform the custom calcs based on a certain
user-defined input. This will be something similar to users building their
own formulas in Excel.
For example - a user will provide the following calculation template in a
three column table in Access; the columns are separated by a comma for your
convenience:
Gross Receipts, (INPUT), No Formula
Exempt Sales, (INPUT), No Formula
Taxable Receipts, (FUNCTION), [Gross Receipts] - [Exempt Sales]
State Sales Tax, (FUNCTION), [Taxable Receipts] * 0.06.
After this template is set up, I want to pass the so-called "FUNCTIONs" from
above to a table which will allow the user to manually input the amounts for
Gross Receipts and for Exempt Sales, and then Access calculate the remaining
two fileds - Taxable Receipts and State Sales Tax - based on the formulas
provided by the user in the first step, and save the latter two values in the
same data table with Gross Receipts and Exempt Sales.
Another Example: I want a user to be ultimately able to type-in a formula in
a template of something like: (Federal Taxable Income + Additions -
Subtractions) * State Apportionment Factor * State Income Tax Rate - Tax
Credits = Total State Tax Due. And then have a user provide all necessary
values for the input fields and have Access calculate Total State Tax Due and
save input and calculated fileds in a table in Access.
Think of this as building a "Report Writer" such as Crystal Reports for
example in Access and then using the calculation templates written in the
report writer to calculate data fields and store them in Access.
Thanks for your help in advance.
I am trying to do the following. I want a user to be able to set up a
calculation template and then reuse this template with live data. Note that I
am not talking about a programmer designing the database. I want to design a
database which would be able to perform the custom calcs based on a certain
user-defined input. This will be something similar to users building their
own formulas in Excel.
For example - a user will provide the following calculation template in a
three column table in Access; the columns are separated by a comma for your
convenience:
Gross Receipts, (INPUT), No Formula
Exempt Sales, (INPUT), No Formula
Taxable Receipts, (FUNCTION), [Gross Receipts] - [Exempt Sales]
State Sales Tax, (FUNCTION), [Taxable Receipts] * 0.06.
After this template is set up, I want to pass the so-called "FUNCTIONs" from
above to a table which will allow the user to manually input the amounts for
Gross Receipts and for Exempt Sales, and then Access calculate the remaining
two fileds - Taxable Receipts and State Sales Tax - based on the formulas
provided by the user in the first step, and save the latter two values in the
same data table with Gross Receipts and Exempt Sales.
Another Example: I want a user to be ultimately able to type-in a formula in
a template of something like: (Federal Taxable Income + Additions -
Subtractions) * State Apportionment Factor * State Income Tax Rate - Tax
Credits = Total State Tax Due. And then have a user provide all necessary
values for the input fields and have Access calculate Total State Tax Due and
save input and calculated fileds in a table in Access.
Think of this as building a "Report Writer" such as Crystal Reports for
example in Access and then using the calculation templates written in the
report writer to calculate data fields and store them in Access.
Thanks for your help in advance.