Check if exists in a form?

faceman

Registered User.
Local time
Today, 19:36
Joined
Feb 11, 2003
Messages
20
I am working with BLOBs in an OLE field. I have it write the binary file to a temp file like this: c:\temp\tmpfile.jpg, but when I open the form up, it says it can not locate the file(because it has not been made yet). Anybody know how I can get the code to see if the temp file exist and if not, then display a default pic?
 
If Dir("c:\temp\tmpfile.jpg") = "" Then
'File does not exist
'use default file
Else
'File does exist
'use c:\temp\tmpfile.jpg
End If

HTH
 

Users who are viewing this thread

Back
Top Bottom