Ok so I am creating a program that makes use of a dbgrid and ado-queries to work with tables from an Microsoft access database.
The program is designed for a business with a loyalty program, members can be registered, and purchases must be tracked. This is the table with transactions:

Now what I want to do is run a ado query that will select a certain member ID from that table, and then I want to add all the “PointsAwarded” from that result of the adoquery. So I can get the total amount of points one member has earned.
It seems that this is very hard to accomplish as I have been searching for days and haven’t found anything useful.
Thanx for any help!
It’s not that hard, if you know what to look for. 🙂
You can group by certain columns, and then use aggregate functions on other columns. In this case, I group all records for each MemberId together to get the sum of awarded points: