Web Development Support
    General Info   Cool Tools
    Getting Started   Troubleshooting
    Design & Promotion   Feedback
 

Search this site:


view site map

Web Databases
Examples of Generating HTML Reports with MS Access

Microsoft Access can be used to create non-interactive HTML reports. This is the easiest way to present database information on the Web. The steps involved are as follows:


Create a report using the Access Report Wizard

Microsoft Access provides many built-in wizards which allow you to create database objects, such as reports, quickly and easily. The following steps demonstrate the process of creating a very simple report. If you desire more detail about creating reports, consult the on-line Help in Access.

1. You will begin by going to the "Reports" tab and selecting the option "Create report by using wizard"

Access report wizard

2. When the wizard launches, you will be asked to supply the fields that should be included in the report. Add the fields by highlighting them in the left-hand pane, and then clicking the single-headed arrow in the middle of the window. You should add the fields in the order in which you would like them to appear in your final report.

Selecting fields

3. If you have a relational database, you may add fields from more than one table (use the Tables/Queries drop down to display fields from an alternate table). For our example, fields from the Employees, Computers, and Inventory tables have been added.

Selecting fields from an additional table

4. Once you have added all the relevant fields, click on the "Next" button at the bottom of the dialog box. You will then be prompted to specify how you want to view your data. For our database, the "Inventory" table will be used.

viewing options

5. Click "Next" to proceed to grouping options. For our database, we will not use a grouping option.

Grouping options

6. Click "Next" to proceed to sorting options. For our database, we will sort by Last Name, and then by First Name.

Sorting options

7. Click "Next" to proceed to layout options. For our database, we will accept the default settings.

Layout options

8. Click "Next" to proceed to style options. For our database, we will choose the "Formal" style.

Style options

9. Click "Next" to proceed to the final step. In this step you will be asked to supply a name for your report. You may accept the default title, or supply any title you choose.

Finishing your report

10. Click "Finish" to create your report. You will then see a preview of your report. If you wish to change the formatting, consult the on-line Help in Access for tips. Once you are satisfied with your report, save and close the file.


Export the report as an html file

1. To export your report as an html file, click once to select the report, and then choose "File -- Export".

Export

2. You will then be prompted to specify a saving location. If you are using Dreamweaver to manage your site, place the file in the appropriate directory. The other change you will need to make before saving the file is the file type. By default, the file type will be .mdb, which is the Access file format. Change the file format to .html in the "Save as type" drop-down menu at the bottom of the dialog box.

Saving the report

3. You may be prompted for a design template to apply. You do not need to specify a template. Simply click OK and your report will be exported. If your report contains more than one page, additional files will be created for each page using a page number following the file name. For example, if you named your report "Inventory" and it was a three-paged report, after exporting you would have three files: "Inventory.html", "InventoryPage2.html", and "InventoryPage3.html".


Upload the report to your Web site

You are now ready to publish your html report. You may use whatever secure file transfer utility you prefer (Dreamweaver, Home Directory Service, SecureFX, Fugu, etc).


View your report

You may now view your html reports on the Web. Take a look at our example of an Access-generated report.

 


Web Development Support | General Info | Getting Started | Design & Promotion
Cool Tools | Troubleshooting | Feedback

If you need further assistance with Web applications or questions, send e-mail to web-consult@virginia.edu or call the ITC Help Desk at 924-3731.

 

© 2008 by the Rector and Visitors of the University of Virginia.

The information contained on the University of Virginia’s Department of Information Technology and Communication (ITC) website is provided as a public service with the understanding that ITC makes no representations or warranties, either expressed or implied, concerning the accuracy, completeness, reliability or suitability of the information, including warrantees of title, non-infringement of copyright or patent rights of others. These pages are expected to represent the University of Virginia community and the State of Virginia in a professional manner in accordance with the University of Virginia’s Computing Policies.