π SQL-to-HTML Tool for Microsoft Access
π SQL to HTML - Export Exactly the Data You Needto HTML
Turn any SQL statement into a clean, interactive HTML table β and preview action queries before they change a single record.
Every Access developer knows the moment: you write a DELETE or UPDATE query, press Run⦠and hold your breath. Did it hit the right rows? The Access datasheet is cramped, action queries tell you nothing before they strike, and turning a result into a readable report means copy, paste and fiddling.
The SQL-to-HTML Tool solves all of that with a single line of code:
ShowAsHtml "SELECT * FROM tblCustomers", "My customers"
β¦ and you instantly get a modern, styled, sortable table β in your browser, inside an Access form, as an HTML file, or as a plain string.
β
π₯ The highlight: a safe preview for action queries
This tool does far more than display a SELECT. For every action query it builds a preview of what would happen β without touching your data:
ββ
π΄ DELETE / DROP β a red warning box shows exactly which records or objects would be removed.
π‘ UPDATE / ALTER β the new values appear as extra columns, right next to the current data.
π΅ INSERT / APPEND / MAKE TABLE β you see the rows that would be added or written.
See before you change. No more guessing, no more βoopsβ.
β
β What the HTML table gives you
- β
Sortable columns β click a header; sorting is type-aware for numbers, currency, dates and text.
β Sticky header that stays visible while you scroll.
β Row & column highlighting on hover.
β Zebra striping and automatic formatting of dates, currency and numbers.
β Live record counter β always know how many rows you are looking at.
β Clean, modern, responsive design that looks good on any screen.
π€ Four ways to output β one parameter
- π Browser β open the result in the default web browser.
π₯οΈ Access form β display it directly inside your application (Edge control).
π HTML file β save a self-contained, UTF-8 encoded file to share or archive.
π’ HTML string β return the markup for e-mails, reports or further processing.
π§ Built for real-world Access
- Runs on 32-bit and 64-bit, Microsoft 365 and Access 2021 or newer.
- Late binding β drop in one module, no reference juggling.
- HTML-injection safe β your data can never break the layout.
- Robust SQL parser β copes with quotes, commas inside values and bracketed field names.
- Built-in error logging for painless troubleshooting.
π‘ A typical use case
Before you run a bulk UPDATE on a live table, you call ShowAsHtml with the statement. The tool shows a warning banner and a table containing the current data plus the new values as additional columns. You check it, close it, and only then execute the query β with confidence instead of a held breath. Or simply hand a colleague a single HTML file of a query result that opens in any browser β no Access required.
π§ͺ Try it out
Using my little testing form you can try the functions directly. This makes it easy to learn the functions step by step. Do you develop a lot with Access? Then give it a try β Iβm looking forward to your feedback or ideas for additional functions! π
You will find the detailed description and all instructions directly in the code - well documented as usual.
π₯ DOWNLOAD
Version: 1.0 14th July 2026




