I have a MS Access database which consists of 9 tables. Each one represents landfills that collect garbage. These tables contain several fields, the primary key being the date and the rest of the fields are the tonnage of garbage that are send to each landfill by several municipalities. For example for the table landfill 1:
date municipality 1 municipality 2
1/1/2014 50 tons 30 tons
The query I'm trying to create is find out how many tons of garbage each municipality sends to all the landfills at a specific date. The code should be sth like
SELECT Landfill_1.municipality_1, Landfill_2.municipality_1,...,Landfill_10.municipality_1
FROM Landfill_1.date INNER JOIN Landfill_2.date ,..., INNER JOIN Landfill_10.date
WHERE Landfill_1.date=[Please select the date:];
My problem is that municipality 1 should be a variable so that I don't have to change it each time.
municipality_1field?