Making Finding Aids for the WWW..or Adventures in extracting HTML from Microsoft Access |
| ||
4.2 The module methodAfter years of battling with the "export to rtf" method I found there was an alternative. Of course, once I realised how simple and how much better it was, I was screaming "Why didn't I do this YEARS ago?".This method does require some programming, but it's pretty simple. I garnered most of what I needed to know from the Access help files. The key to this method is the "Print" function, apparently a hang-over from the days before Basic went Visual. The "Print" function allows you to write directly to a file, thus avoiding all the Report generation and export hassles of the old method. It overcomes the two specific problems of the "export to rtf" method - no truncations, and it's much, much faster. To compare the efficiency of the new method I tried generating the Directory of Archives in Australia using both methods and compared the results:
Export to RTF: Output to rtf: 2 mins 25 secs Word macro: 1 min 32 secs TOTAL TIME: 3 min 57 secs Module method: 27 secs in total!A significant difference, don't you think? To get started you simply open a new code module, insert a function, and give it a name. Now you can start writing some code. There are three main stages:
What we want to end up with is WWW finding aid comprising a "Contents" page listing each series, linked to a page for each series listing each item in that series. Here's how... |
1. Introduction 2. Why use databases? 3. Exporting your files to databases 4. Producing HTML from databases 4.1 Export to rtf method 4.2 The module method 4.2.1 Contents page 4.2.2 Item listings 4.2.3 The results
| ||
|
Created by Tim Sherratt (Tim.Sherratt@asap.unimelb.edu.au) Last modified: 16 March 1998
|