I have an ActiveX component on an Access form. I use the following code to open a .tif file from a network location.
DoCmd.OpenForm "Graphics Viewer"
Forms![Graphics Viewer].gdViewer2.DisplayFromFile (DrawingLocation)
Forms![Graphics Viewer].gdViewer2.SetZoomFit
When I run the code, all I get is a black screen in the gdviewer window. I have tried typing in a full path that is a known .tif file and I still get the black screen. The funny thing is that this was working until I made some changes in another part of the program. Any ideas?
