When I do
"SELECT SUM(Table1.Field1) as VariableSumField1 " _
& "FROM Table1, Table2 WHERE Criteria"
this work great!
Now I want use other fields from both tables. I try this
"SELECT SUM(Table1.Field1) as VariableSumField1, " _
& "Table1.Field2, Table1.Field3, Table2.Field1 " _
& "FROM Table1, Table2 WHERE Criteria"
but this is wrong.
How I can sumarize and use other fields from both tables in my SQL Command?
"SELECT SUM(Table1.Field1) as VariableSumField1 " _
& "FROM Table1, Table2 WHERE Criteria"
this work great!
Now I want use other fields from both tables. I try this
"SELECT SUM(Table1.Field1) as VariableSumField1, " _
& "Table1.Field2, Table1.Field3, Table2.Field1 " _
& "FROM Table1, Table2 WHERE Criteria"
but this is wrong.
How I can sumarize and use other fields from both tables in my SQL Command?