rpbsr said:
Thanks Tom. I've never used a module. You didn't
mention a discount field for the table. Does this mean
it would only appear on the form? How would I
get that form field to display the discount?
Modules are containers for VBA code. Strictly speaking, that is the only
use for modules. The uses for VBA code are many and varied, and one such use
would be to perform complex calculations.
You will find Fields in Tables and Queries. You may see the contents of
Fields displayed in, or entered into, Controls on Forms. Form Controls may
be unbound, in which the content is set from VBA code or entered from the
keyboard; may be bound to a Field, in which the content is retrieved from
and/or saved in a Field specified in the Control Source property; or may be
Calculated Controls, in which case, the Control Source is an expression
(which may refer to a function that exists in VBA code in a module).
There are a number of ways to determine the discount used... that might
include a Table indexed by family size and income, a function with input
arguments of family size and income, or some other calculation.
Access is a software tool that makes it easy to manipulate data (arguably,
there is no easier-to-learn and easier-to-use software tool for this
purpose). That does not mean that it makes it so easy that there is _no_
learning required to implement non-trivial database applications.
Larry Linson
Microsoft Office Access MVP