I have a quoting/invoicing database. The database consists of parts and
complete modules. The modules (nothing to do with access modules) consist
of many parts and the cost of the module is a calculated total, comprising
all the individual parts that make up that module. So far it works really
well.
When the database generates a quote/invoice, I need to save the calculated
total into a field, called ModuleTotal. I know that database theory says
you don't save calculated values, however I need to in this case. If I
don't save the value, and the cost of parts change, then everytime these
reports are re-run, different totals will be generated. Everyone will
become very confused and it won't work.
Specifically, I have a subform that lists the ModuleID, ModuleName,
ModuleTotal, and a couple of other fields. Currently, when the cursor
enters the moduleTotal field, a pop-up form appears with a list box,
showing module names and totals. How do I save the module total from the
pop-up list and have it appear in the ModuleTotal field on the subform.
Ideally, as soon as the user inputs the ModuleID, it would be better if the
ModuleName and ModuleTotal fields were automatically filled with the
appropriate values.
If you can help me out, then email to me and post to group. Needless to
say I have spent hours trying to automate the above without success. Would
sure appreciate some help on this one.
thanks
PS: I am not to experienced with all the jargon and code, so keep it
simple if possible...
regards
If you refer to values in a sub form use the following syntax:
forms![formname].[fieldname]
with this syntax you can address any open form, whether it
is a sub form or not.
Another method will be to run an update query once you exit the entry
form.