HTML Exporting - How to Change Display Name

M

MeTed

Hey All,

I currently have a routine that creates a table with a hyperlink reference
to a network location (ACC2003). This hyperlink ends up being lengthy once
I export this table to HTML. Is there a way in the export routine to give
the hyperlinks a "friendly" name? This name would actually be data from
another field.

For instance:

Field1:
087-3334

Field2:
\\server\projects\year\client\part\revision\blahlahblah


When I export I want the "087-3334" to hyperlink to Field 2's location.


Thanks in advance....
 
J

John Nurick

Hi,

At least in Access 2003, if you have a Hyperlink field containing a
string formatted like this:

displaytext#address#subaddress

when you export to HTML it is converted into a HREF structure

<A HREF="address#subaddress">displaytext</A>

So the simplest thing may be to combine your two fields into one and
take advantage of this behaviour.

Otherwise, all I can think of involves hand-coding:

(a) write VBA code to generate custom HTML, or

(b) do a standard export to HTML and then have your code run through the
resulting file to modify the links as required.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top