Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display HTML on a form??

Status
Not open for further replies.

Aett

MIS
Jan 30, 2006
15
US
Greetings,

I have some data in a table/field that is in html format. When I query the data and put it in a form it shows up in it's raw html format. How can I modify the form so if the data it's trying to show on the form is HTML it shows it correctly?
Thanks in advance
 
You could play around with a temp file and the web browser control.

Code:
Private Sub Form_Current()
Dim f, fs, strURL

    strURL = "c:\docs\tmp.htm"

    Set fs = CreateObject("Scripting.FileSystemObject")
    Set a = fs.CreateTextFile(strURL, True)
    a.Write Me.HTM
    a.Close
    
    Set IE = Me.wb 'Microsoft Web Browser

    IE.Navigate strURL
   
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top