Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking info on tables

Status
Not open for further replies.

domino3

MIS
May 20, 2003
307
GB
Hi

I have a two tables which I would like to link certain info on.

The first table has members on, each with their own ID no. The second table has fundraisng amounts raised by each member over a period of time. There may be more than one fundraising amount for any member. It also contains donations given. Is there any way to show the total fundraising amount from the fundraising table for individual memmbers in their own record on the members table.

Thanks

 
You will want to use a query to do this.

SELECT Members.MemberID, Sum(Funds.Amount)
FROM Members INNER JOIN Funds ON Members.MemberID = Funds.MemberID
GROUP BY Members.MemberID

The data will not be stored in the table, but calculated on the fly when needed. That way, you will always see the most recent information.
 
Thanks for the informaiton. However, is there any way of getting that data stored in the table and updated when further amounts are added. At the moment I am having to type the figures in manually.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top