When Grouping data, the only fields in your query should be the fields you are Grouping By and the fields you are calculating (SUM).
Adding any other fields will cause problems, because if they are not duplicates, they will not be grouped.
So your Aggregate Query should probably need to look something like:
Code:
SELECT Right([UserProfile12_5.FieldName],4) Sum(UserProfile12_5.Size) AS [Sum Of Size]
FROM UserProfile12_5
GROUP BY Right([UserProfile12_5.FieldName],4);
If you want to add other fields into it, you need to do so after the fact, by linking (or nesting) this query to your original data.
If you are still having trouble with this, please post data samples of:
- What your data currently looks like
- What you want your results to look like
That would give us a clearer picture of what the data you are working with looks like, and what exactly you wanted your expected result to look like.