I'm trying to display an animated gif in Access on a form. I did this by creating a webbrowser control and using VBA to change it's controlsource:
Me.WebBrowser1.ControlSource = "=" & Chr(34) & "C:\DisplayGifs" & temp & Chr(34) 'set the browser to the gif
Now I want it horizontally centered. So far I've tried creating HTML in a text file and saving it as .html:
<html><head></head><body><center><img src="C:\DisplayGifs\GifName.gif"></center></body></html>
This does what I want when I open it in a browser, but I don't know how to feed the HTML into the webbrowser control. I'm going to vary the gif programmatically, so I don't want to point the control at an HTML document somewhere.