Jump to content
Sign in to follow this  
sirtemplar

sum from selected field on another table

Recommended Posts

hi. i do not know if my subject is correct, however this is what i am trying to do.

i have a database with two tables. table 1 contains:

field1 (text)

field2 (number)

on field two there are values of 1500. what i want to do is put the some all the values with 1500 and put it on a field on table 2. how fo i do this?

Share this post


Link to post
Share on other sites

Hi

1) make a global number field in table2

2) make a relationship ;)

Table1::field2 = Table2::gNumberField

3) make a calc field in table2:

Sum ( Table1::field2 )

From now, if you enter some number ( for example 1500 ) into gNumberField, the calc field will give you the sum of all related field2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.