From data not showing up in table

J

Jody

I have several calculated controls on a form. The below
example is typical of the type of calculation and
resulting behavior issue I am having.

Example:
Form / Table Field: ContractAmt
Control Source: =[ContractLength]*[MonthlyRate]

Behavior:
The correct amount shows up in the form field but not in
the corresponding field in the table.

What is wrong here? I would expect to see the form data
in the table as well.

Any help will be appreciated.
Jody
 
B

Bas Cost Budde

Jody said:
I have several calculated controls on a form. The below
example is typical of the type of calculation and
resulting behavior issue I am having.

Example:
Form / Table Field: ContractAmt
Control Source: =[ContractLength]*[MonthlyRate]

Behavior:
The correct amount shows up in the form field but not in
the corresponding field in the table.

What is wrong here? I would expect to see the form data
in the table as well.

Um, no. You don't store calculated values in a table. The control source
tells you the right thing: this piece of information can be uniquely,
reliably and easily be derived from other information stored in the record.

If you need this value in a query, repeat the calculation. (Sorry, there
is no mechanism to store the calculation as a formula.)
 
G

Gerald Stanley

I assume that you have called the control ContractAmt as
that is the name of a column within the table. However,
Access cannot make that assumption, it needs to be given
that information from the ControlSource property.

If ContractLength and MonthlyRate are also columns on the
table, then there is no real need to have ContractAmt as a
column. You can always calculate it as you have done on
the form.

Hope That Helps
Gerald Stanley MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top