FoolzRailer
New member
- Local time
- Today, 01:20
- Joined
- Apr 15, 2016
- Messages
- 25
Hello
I'm trying to do a Total query, that is calculating the cost of building certain systems. Right now I'm just trying to count the number of Nodes and multiply that with field UnitPrice, to find out how must the cost of nodes is based on their size (the sum of all the money spent on 1 meter nodes fx.).
However I keep getting an aggregate function error.
Tried to translate my query language. Don't mind the locale settings for ";" or ",":
Format(Sum([Nodes_UP].[UnitPrice]*Count([NodesList].[Nodes]));"Currency")
What am I doing wrong here? Full Code below.
I'm trying to do a Total query, that is calculating the cost of building certain systems. Right now I'm just trying to count the number of Nodes and multiply that with field UnitPrice, to find out how must the cost of nodes is based on their size (the sum of all the money spent on 1 meter nodes fx.).
However I keep getting an aggregate function error.
Tried to translate my query language. Don't mind the locale settings for ";" or ",":
Format(Sum([Nodes_UP].[UnitPrice]*Count([NodesList].[Nodes]));"Currency")
What am I doing wrong here? Full Code below.
SQL:
SELECT Nodes_UP.ID, Nodes_UP.Description, Nodes_UP.UnitPrice, "Stk." AS UnitType, Count(NodesList.Nodes) AS Quantities, Format(Sum([Nodes_UP].[UnitPrice]*Count([NodesList].[Nodes])),"Currency") AS Total
FROM List_Nodes INNER JOIN Nodes_UP ON List_Nodes.JoinNodes = Nodes_UP.Join
GROUP BY Nodes_UP.ID, Nodes_UP.Description, Nodes_UP.UnitPrice, "Stk."
ORDER BY Nodes_UP.ID;