A family of Microsoft relational database management systems designed for ease of use.
Ok, this is great. That is what I had hoped would happen (I expected it but wasn't 100% sure). We are doing this in steps, so I had to make sure that step 1 worked before we can proceed.
So the next step is to make this more dynamic. You want to be able to run this query for any Center and any month. So the next step is to add an UNBOUND textbox on the Main form for the Month you want to add the records for. Then change the criteria in the query so it references the CenterCode from the main form. The Criteria should look like this:
=Forms!mainformname!controlname
where mainformname is the name of the main form and Controlname the name of the control that is bound to the CenterCode. One last thing is to add a column to query:
Mth: Forms!mainformname!controlname
where controlname is the name of the unbound control you just added for the month.
Now when you run the query, it should show records for the Center currently being displayed on the main form with a field for the month.
Let me know once that is working and we go on to the final step.