hi
i have a webbrowser activex control in my main form,and this is the code in it
but when i use record from subform, the webbrowser does not work,
although in the main and subform have the same field photo is the field that need to be run
there is any idea to how to fix it ??
i apperciate any help
code is written in HTML
i have a webbrowser activex control in my main form,and this is the code in it
Code:
Private Sub Form_Open(Cancel As Integer)
wb1.Navigate2 "about:blank"
Do Until wb1.Document.ReadyState = "interactive"
DoEvents
Loop
End Sub
Private Sub Form_Current()
wb1.Document.body.Style.margin = 0
wb1.Document.body.Style.border = 0
wb1.Document.body.scroll = "no"
wb1.Document.body.innerhtml = "<img src='" & photo & "' style='width=100%;height=100%;'>"
End Sub
but when i use record from subform, the webbrowser does not work,
although in the main and subform have the same field photo is the field that need to be run
there is any idea to how to fix it ??
i apperciate any help
code is written in HTML