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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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