Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

Calculation in a form not entering table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alexandros - 30 Mar 2007 18:02 GMT
Hi all.
I have created a form (Orders Form) to enter some data regarding orders.
This form saves the typed data into the table (Orders Table) including the
customer's ID and Order ID.
All nice and saved into the Orders Table, except from the Total field.
Furthermore, I can type any kind of data into every field in the Orders
Form, apart from the Total field where i have placed the calculation:
=[Subtotal]*[VAT]/100+[Subtotal]. Doing this, i am able to view the total
cost including the VAT.

Later on, i would like to use the Orders Table for further data withdraw.
But, without the total field, it is useless for me...
Can enyone tell me what i am doing wrong?

Signature

Tnx in advance

fredg - 30 Mar 2007 18:21 GMT
> Hi all.
> I have created a form (Orders Form) to enter some data regarding orders.
[quoted text clipped - 9 lines]
> But, without the total field, it is useless for me...
> Can enyone tell me what i am doing wrong?

You're attempting to use Access as though it were a spreadsheet.
As a general rule, do NOT store calculated data in your table.

As long as you have stored the individual data fields, such as
[Quantity], [Price], [VAT], etc., anytime you need the total amount
calculate it, in a query, or on a form, or in a report.
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

alexandros - 30 Mar 2007 23:50 GMT
thank you, it worked just fine!!!

> > Hi all.
> > I have created a form (Orders Form) to enter some data regarding orders.
[quoted text clipped - 16 lines]
> [Quantity], [Price], [VAT], etc., anytime you need the total amount
> calculate it, in a query, or on a form, or in a report.
Douglas J. Steele - 30 Mar 2007 18:25 GMT
In general, computed fields should not be stored in tables.

As fellow Access MVP John Vinson likes to say "Storing calculated data
generally accomplishes only three things: it wastes disk space, it wastes
time (a disk fetch is much slower than almost any reasonable calculation),
and it risks data validity, since once it's stored in a table either the
Total or one of the fields that goes into the total may be changed, making
the value WRONG."

Create a query with that calculation in it, and use the query wherever you
would otherwise have used the table.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hi all.
> I have created a form (Orders Form) to enter some data regarding orders.
[quoted text clipped - 9 lines]
> But, without the total field, it is useless for me...
> Can enyone tell me what i am doing wrong?
alexandros - 30 Mar 2007 23:52 GMT
As fredg and you aswered, you have covered my question and it worked as i
wanted to. Thank you very much

> In general, computed fields should not be stored in tables.
>
[quoted text clipped - 21 lines]
> > But, without the total field, it is useless for me...
> > Can enyone tell me what i am doing wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.