It sounds like you should be able to create the necessary queries by building up the SQL statement in code. If you know SQL, that shouldn't be a problem.
If you have been using Access to create queries in the "Design" mode, you can switch to the SQL mode with View/SQL View from the menu. (There is also a tool on the tool bar.)
You set up the queries using VBA and forms. If this is not making sense, you need to get a book to teach you the essentials of programming Access. You can get an idea from the help file, look up "query" and select the topic "Query Properties Reference" click on "See Also" click on "Set Properties by Using Visual Basic" and display. Finally, click on "Set Form, Report, and Control Properties in Visual Basic" (There's probably an easier way to get there, but it's late and I'm signing off for the night.)
One final thought, you might consider re-structuring your tables so that each office is on a different row (3rd normal form). There will probably always be 24 months in every two years, but the number of offices could change and that will make your job much harder.