update data in table through form

S

Srinivas

i have created customer data in table and im updating data through form, in
the form at one field i have created a formula [bill amt]-[paid amt] and it
works but is not updating in the table, kindly help in this i also want to
run query in form like i want to see reports from from date to end date of
due amt
 
T

Tom van Stiphout

On Fri, 5 Mar 2010 04:09:01 -0800, Srinivas

Formulas like that don't belong in a table, but in a query. So if you
ever need this value simply create a query, select your table, and set
one of the fields to:
DueAmt: [bill amt] - [paid amt]

-Tom.
Microsoft Access MVP
 
J

John W. Vinson

i have created customer data in table and im updating data through form, in
the form at one field i have created a formula [bill amt]-[paid amt] and it
works but is not updating in the table, kindly help in this i also want to
run query in form like i want to see reports from from date to end date of
due amt

This value should simply NOT EXIST in your table.

Storing derived data such as this in your table accomplishes
three things: it wastes disk space; it wastes time (almost
any calculation will be MUCH faster than a disk fetch); and
most importantly, it risks data corruption. If one of the
underlying fields is subsequently edited, you will have data
in your table WHICH IS WRONG, and no automatic way to detect
that fact.

Just redo the calculation whenever you need it, either as a
calculated field in a Query or just as you're now doing it -
in the control source of a Form or a Report textbox.
 
D

De Jager

Srinivas said:
i have created customer data in table and im updating data through form,
in
the form at one field i have created a formula [bill amt]-[paid amt] and
it
works but is not updating in the table, kindly help in this i also want to
run query in form like i want to see reports from from date to end date of
due amt
 

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

Similar Threads


Top