Loading HTML text directly from a table into the Web Browser control

Premy

Registered User.
Local time
Today, 11:33
Joined
Apr 10, 2007
Messages
196
Pls note that this is more a VBA (Access) related question, but since my posting in the access forums didn't yield any results so far, someone suggested I'd more likely to get help for this in the VB Forum. Sorry for the cross posting, but I'd really like to solve this one asap)

The Problem

I have a Medecine table with records already tagged in HTML, for example the field named Description:
<h3>ABILIFY - <em>B-MS</em></h3>
<p><em>Antipsychotic</em> <br /> For Adults. Oral Use. </p>
...

I would like to be able to display this text in a web browser control on my form (Access 2003). VBA help has nothing on the subject, and neither does the Object Explorer Help provide any clue to what the methods of the SHDocVW class do.

Pls note that the Medecine table is not on a website or in a website folder, but just underlying the form with the WB control. So the navigate method obviously doesn't work: WebBrowser1.Navigate txtDescription throws an error saying the URL cannot be located (rightfully so, since the field contains the HTML text above and NOT a URL).

Appreciate your help

Premy
 

Users who are viewing this thread

Back
Top Bottom