I have a query that has the following display:
type $ value
1 5
1 3
1 2
2 1
2 3
This query is the record source of my form I would like the form to display the data as so
type Sum of value
1 10
2 4
is there a vba or setting way to achieve that ?
The proper way to do that is to use an aggregation function in your query, in your case it would be sum . Your query will look like this.
SELECT Type, SUM(value) As Total FROM table GROUP BY Type;
if you use the graphical query builder then you will have to follow this
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.