Yes I Have ANOTHER Access Question

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Kammmie

Thread Starter
Joined
Aug 14, 2001
Messages
132
Here is my question:

I created a table with a ton of information in it. I then created a form so I could enter new information into this table. In the form are some fields with formulas in them. When I enter new information into the form the fields with formulas in them are not calculating out and blanks are being left in those fields in the table or the value 0 appears. Any reason for this??? The information is calculated out in the form but not in the table.

Kammmie
 
Joined
Jul 29, 2001
Messages
21,334
Putting formulas into a text box is not a good idea since I am sure most of the stuff is reseved for Access and SQL and will never display properly. You need to make anything that is in a text box that is a real formula literal by surrounding it in double or single quotes (not sure which) when they go into the table. Could you give us an example of what you are trying to enter?
 

Kammmie

Thread Starter
Joined
Aug 14, 2001
Messages
132
An example of the information I enter in the form is our cost and our customers cost ... the formula is then set up in the profit field to subtract our cost from the customers cost. It calculates out in the form and is still calculated out if I go in through the form but it is not calculated in the table and the table is what reports are drawn off of.
 
Joined
Jun 24, 2001
Messages
49
As long as you have the actual cost and the customer cost in your tables there is no need to store this calculation in the table.

To view the calculation, you would have a text box with a control source of,

= [client cost] - [actual cost]

This formula would then be used in any queries or report where you need to calculate your profit.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

No members online now.
Top