I'm trying to open up a tif file with VB from an access form. I'm using the GetObject function, but I don't know the class name for the Windows Picture and Fax Viewer. (This is the default program to open TIF files with the Microsoft XP operating sysytem)
Here's what I'm trying right now, but its giving me a run time error '429'.
Sub xOpenFile()
Dim oTif As Object
Set oTif = GetObject("C:\Documents and Settings\DANIEL\00000026.tif", "shimgvw.application")
oTif.Visible = True
End Sub
If I know the correct class name to use I should be fine. Does anyone know the class name?
Thanks
Daniel
Here's what I'm trying right now, but its giving me a run time error '429'.
Sub xOpenFile()
Dim oTif As Object
Set oTif = GetObject("C:\Documents and Settings\DANIEL\00000026.tif", "shimgvw.application")
oTif.Visible = True
End Sub
If I know the correct class name to use I should be fine. Does anyone know the class name?
Thanks
Daniel