I can correct the table issue. But then I'm going to have to pass a number of strings for filters so the query does what I want.
Anyway my tables will consist of company, state, msa, serv, tract, year as my filter and grouping fields. The rest of the fields will be summed, etc.
My query will look like this.
Select company, state or msa, tract, sum(fld1), sum(fld2)
from mytable
where company = 'abc' and
state = 'MD' and
year = '1996'
group by company, state
I don't need year in the report. But I could add it.
The filter/grouping fields will be selected from a form. Hit the submit button and off you go.