Eikenhorst
Registered User.
- Local time
- Today, 10:59
- Joined
- Mar 9, 2007
- Messages
- 25
Hello,
I’m working on a complaints database. For some complaints a photo of the complaint can be more clarifying. I have a code that checks if there is a photo linked to the opened complaint and if it does I want this to open, in a program like the Windows Picture and Fax Viewer. But I doubt if this is possible, I couldn’t find an VBA statement that would allow me to open a file.
The code I have until now is the following:
If Len(Dir("T:\Quality Assurance\Reg\Complaints\Pictures\" & Me.Combocomplaintnumber & ".JPG")) > 0 Then
‘Open the file in Windows Viewer
End If
I could of course open a new form with just this picture placed in it, or something like that. But that doesn’t allow me to zoom in. I hope anyone could help me with this, any help is greatly appreciated!
I’m working on a complaints database. For some complaints a photo of the complaint can be more clarifying. I have a code that checks if there is a photo linked to the opened complaint and if it does I want this to open, in a program like the Windows Picture and Fax Viewer. But I doubt if this is possible, I couldn’t find an VBA statement that would allow me to open a file.
The code I have until now is the following:
If Len(Dir("T:\Quality Assurance\Reg\Complaints\Pictures\" & Me.Combocomplaintnumber & ".JPG")) > 0 Then
‘Open the file in Windows Viewer
End If
I could of course open a new form with just this picture placed in it, or something like that. But that doesn’t allow me to zoom in. I hope anyone could help me with this, any help is greatly appreciated!