"Access" Databases

dcaccounting

Free Member
Jan 27, 2006
145
1
South West
Ok I am now pullying my hair out!

I have built a database, but I am trying to put in a formula much like you would in excel... is it working, NO!!! Grrr

Is there any microsoft access wizards out there???

Bascially im trying to say "find this box/cell then whatever is entered in there divided it by "?" and then times it by "?"

=sum(boxname/"?")*"?"

HELP!

:D

Regards

Dean
 

Stephen

Free Member
Feb 24, 2004
176
0
UK
I think it unlikely you actually want to do this in the table. Broadly, databases should store the underlying values, but not the result of any calculations on the data. That way, it's more efficient. (There are occassions where you might want to store derived data, but they're quite specific and technical.)

What I think you might want to do is store the basic data in a table, then create a query. You can use the query design view: select the table, then the fields, then in the columns you can add a formula something like Col1 / 3 * 4. Don't use the word SUM, as that has a specific meaning in Access that is quite different to Excel.
 
Upvote 0
Dean,

Mathematical functions can be stored within a database. In MS Access this is known as a "Query" other databases call this a view

This represents a way that data is presented which is derived from the original data. Using a "Query" for example you can add together two table columns and subtract a third to produce a final result for each row.

You use an "Expression" again an MS Access term, to store the specific calculation that you want.

Does this help your understanding here?
 
Upvote 0

dcaccounting

Free Member
Jan 27, 2006
145
1
South West
Enigma121 said:
You use an "Expression" again an MS Access term, to store the specific calculation that you want.

Does this help your understanding here?

Yes, yes thats it. It is in table but then put to design mode.... then i click on the cell I want to put in an "expression" called "default value" click on the [...] box and this is where I am putting the formula.

Not working though :cry:

Regards

Dean
 
Upvote 0
B

BusinessIdeas

No not pivot tables You just need to make a new query from the table and add a new calc field or if you want a constant you could make a new table with the constant in and add it to the query then you make a new field in the query with a : after the title as in newfield: [nameofexistingfield]*[constantfield] obviously use the names that you have named the field not my names then the query will multiply the two fileds it can be a little more complicated in that the fields format have to be correct. i hope this helps :)
 
Upvote 0

Latest Articles

Join UK Business Forums for free business advice