r/MSAccess • • 19d ago

[UNSOLVED] How many Access developers have built metadata-driven reporting systems for recurring Excel deliverables?

I've spent much of my career building recurring customer and management reports from Access applications and I'm curious how others have approached the problem.

I found myself running into the same requirements repeatedly:

  • Multiple Excel worksheets per workbook
  • Subtotals, grand totals, percentages, and formulas
  • Variable grouping levels
  • Charts
  • Different layouts for different reports
  • Customer-facing deliverables that needed a consistent appearance

Over time I moved toward a metadata-driven approach where:

  • Access SQL prepares and summarizes the data
  • Sorting/grouping tables define report bands
  • Metadata tables define formulas, formatting, headers, footers, charts, and worksheet layout
  • VBA calculates worksheet coordinates and generates the final workbook

The result is that most of the report definition is data-driven rather than hard-coded.

I'm curious whether other Access developers have gone down a similar path, or whether you've found different approaches to managing large numbers of recurring Excel reports.

I'd especially be interested in hearing from anyone who has built reporting frameworks rather than individual reports.

6 Upvotes

13 comments sorted by

•

u/AutoModerator 19d ago

IF YOU GET A SOLUTION, PLEASE REPLY TO THE COMMENT CONTAINING THE SOLUTION WITH 'SOLUTION VERIFIED'

  • Please be sure that your post includes all relevant information needed in order to understand your problem and what you’re trying to accomplish.
  • Please include sample code, data, and/or screen shots as appropriate. To adjust your post, please click Edit.
  • Once your problem is solved, reply to the answer or answers with the text “Solution Verified” in your text to close the thread and to award the person or persons who helped you with a point. Note that it must be a direct reply to the post or posts that contained the solution. (See Rule 3 for more information.)
  • Please review all the rules and adjust your post accordingly, if necessary. (The rules are on the right in the browser app. In the mobile app, click “More” under the forum description at the top.) Note that each rule has a dropdown to the right of it that gives you more complete information about that rule.

Full set of rules can be found here, as well as in the user interface.

Below is a copy of the original post, in case the post gets deleted or removed.

User: Prize_Painter2546

How many Access developers have built metadata-driven reporting systems for recurring Excel deliverables?

I've spent much of my career building recurring customer and management reports from Access applications and I'm curious how others have approached the problem.

I found myself running into the same requirements repeatedly:

  • Multiple Excel worksheets per workbook
  • Subtotals, grand totals, percentages, and formulas
  • Variable grouping levels
  • Charts
  • Different layouts for different reports
  • Customer-facing deliverables that needed a consistent appearance

Over time I moved toward a metadata-driven approach where:

  • Access SQL prepares and summarizes the data
  • Sorting/grouping tables define report bands
  • Metadata tables define formulas, formatting, headers, footers, charts, and worksheet layout
  • VBA calculates worksheet coordinates and generates the final workbook

The result is that most of the report definition is data-driven rather than hard-coded.

I'm curious whether other Access developers have gone down a similar path, or whether you've found different approaches to managing large numbers of recurring Excel reports.

I'd especially be interested in hearing from anyone who has built reporting frameworks rather than individual reports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/jcradio 19d ago

This was something I commonly did as Excel was still one of the leading ways to render analytics and reports, but access was raw power for calculating, slicing and dicing.

1

u/Prize_Painter2546 19d ago

That's pretty much the environment that led me down this path. Access was doing the heavy SQL lifting and Excel remained the delivery vehicle because that's what management and customers ultimately wanted. At some point I got tired of maintaining separate workbook generators for every report and started moving more and more of the workbook definition into metadata tables.

Did you eventually stay with Access/VBA for report generation, or move to something else?

2

u/jcradio 19d ago

I've done similar, particularly when accountants don't want to use the same worksheet format. I've built configurations, auto updaters, formatters, emailers, etc.

These days, I do a lot in the DotNet space, but still blow people's minds when I drop into Access and vba to do something modern tools struggle with easily.

2

u/brigandbreton 19d ago

I was there Gandalf….

Nowadays I put data in sql server or connect to compagny data warehouse and run the logic in power query.

It’s overall fast, handle good volume of data of your computer is not a toaster.

PowerBO is also nice but I found out that people are lost with it, so excel it is.

1

u/Prize_Painter2546 19d ago

That's interesting because one of the things I've struggled with is that Power BI solves some problems well, but many of the customers and managers I've worked with still want a standalone workbook with formulas, subtotals, worksheets, and data they can inspect directly.

My solution eventually evolved into a metadata-driven framework because the number of recurring reports kept growing. Did Power Query completely replace those workbook deliverables for you, or are you still generating Excel workbooks from the warehouse?

2

u/MultiUserDungeonDev 19d ago edited 19d ago

I think my next hop in that journey was actually building my own REST APIs. With the tools and AI that’s available right now, the sky is the limit. Of course, do it in the right way. Learn fundamentals. Have a security awareness. Study the common ways a project might fail and put steps in place to mitigate them.

You can them use your APIs to slice and dice by sending and receiving JSON payloads directly in Excel (Including UI rendering logic).

Another benefit is that you can design your APIs to be relatively backend agnostic, so it could be an Access DB, SQLite, SQL Server or MySQL, and it all just works the same from your front end. Basically treating Excel like a web app, or an asynchronous desktop application.

Example project:

https://github.com/WilliamSmithEdward/ReDim

Visual Demo:

https://youtu.be/2WAgLK5W5Fo?is=m8JJvfAMlN_wWx75

1

u/Prize_Painter2546 19d ago

ReDim appears to be a powerful framework for building interactive applications inside Excel. Looking through the examples, it seems focused on solving UI, state management, navigation, async processing, and application-framework problems within Excel itself.

The reporting architecture I described in this thread is aimed at a different problem: generating recurring, highly formatted business workbooks from SQL-prepared data and metadata definitions using only Access, VBA, and Excel. The focus is workbook generation rather than application development.

In my case the requirements were things like:

  • multiple worksheets
  • group breaks and report bands
  • subtotals, subfooters, and grand totals
  • metadata-driven formulas
  • charts
  • helper columns and hidden calculation fields
  • dynamic formatting, line weights, colors, and layouts
  • recurring client and management deliverables

For Access developers interested in that style of reporting architecture, I recently documented a working reference implementation:

https://github.com/pttrailerman-boop/MetadataDrivenReportingEngine-

I think both approaches are interesting, but they appear to be solving very different classes of problems.

1

u/InfoMsAccessNL 4 19d ago

Very impressive! how did you make the modern looking msgbox? Did you use an image as background?

1

u/George_Hepworth 5 19d ago edited 18d ago

A few times, yes. Most of the time we did so when charting and graphing was part of the requirement.

1

u/KelemvorSparkyfox 51 18d ago

In a previous job, I built an Access database that had:

  • List of recipients
  • List of accounts
  • List of who managed which accounts
  • List of control values

Each week, it would use the control values to build a new workbook from a template (saved to a network drive that was available to the whole team). It would create a DataSelect session and use other control values and the list of accounts to generate a worksheet for each account, showing current and future normal and promotional prices.

When the complete report was finished, it would then send a complete copy to everyone who didn't have an account list. This included the Sales Director, Group Finance, Credit Control, and Customer Services. For recipients who did have an account list, it would create a customised version that just included their accounts. Then it sent them, too. The sending used Lotus Notes initially, before moving to Outlook.

It turned a task of multiple hours into one that took a few minutes.

The price reports were nothing fancy - just a summary of the account details (name, ledger code(s), price list code(s)), a list of normal prices vs standard cost on the left, and a list of promotional prices vs standard cost on the right. But I would get it in the neck if the report was late!

1

u/ClovisCanoesSlowly 18d ago

This is actually a pretty interesting approach. Once you have more than a handful of recurring reports, hardcoding every layout and formula in VBA gets messy fast. Keeping the report definitions in tables sounds like a good way to make changes without constantly touching the code.

1

u/DueOwl2412 3d ago

Hey, I've done it, built Oracle driven Metadata platform and automated over 150 reports there, complex stuff, with many steps, it was all configurable It ran with MS Access front end and oracle pl sql but that's because our data was on oracle.  Not sure if links are allowed here, I have it in my portfolio