[ Team LiB ] |
![]() ![]() |
Saving Database Objects as HTMLProbably one of the most basic but powerful features in Access is the capability to save database objects as HTML documents. You can publish table data, query results, form datasheets, forms, and reports as HTML. Each of these objects is covered in the sections that follow. Saving Table Data as HTMLWhen saving table data, you can store it in the HTML file format so that you can easily publish it on the Web. To save table data as HTML, just follow these steps:
Access exports the file to HTML so that you can view it from any Web browser (see Figure 19.1). You can also view the HTML source, as shown in Figure 19.2. To view the HTML file in a browser, you simply locate the file on your hard disk in Explorer or My Computer and double-click the file. The file then launches in Internet Explorer (or your default browser). To view the source, you select View | Source while in Internet Explorer. Figure 19.1. The Northwind database Customers table saved as HTML.Figure 19.2. The source of the Northwind database Customers table's HMTL file.Saving Query Results as HTMLThe capability to save query results as HTML means you don't need to save all fields and all records to an HTML file. In fact, you can even save the results of Totals queries and other complex queries as HTML. Saving the result of a query as HTML is similar to saving a table as HTML. It involves these steps:
Saving Forms as HTMLYou can't save an entire form as HTML, but you can save a form's datasheet as HTML because an HTML file is a static file. It doesn't change as the data in the database changes, nor can you modify the data in an HTML file. To save a form's datasheet as HTML, follow these steps:
Saving Reports as HTMLYou can save reports and their formatting as HTML, and this is an elegant way to publish data on an Internet or intranet site. To publish a report as HTML, just follow these steps:
Figure 19.4 shows a report published as HTML. Because the report is a multipage report, Access generates several HTML files. The generated HTML links each page of the report, and the user can easily navigate from page to page by using the First, Previous, Next, and Last hyperlinks that are automatically generated during the Save process. Figure 19.4. Viewing the Northwind database Alphabetical List of Products report as HTML. |
[ Team LiB ] |
![]() ![]() |