This routine fails intermittently at line 6, when I try to set the Picture
property of an Image object. It throws error 2001: You canceled the
previous operation.
1. cFile = "D:\logos\" & frm.BrandCode & ".gif"
2. If Dir(cFile) = "" Then
3. frm.imageBrand. Visible = False
4. frm.lblNoImage. Visible = True
5. Else
6. frm.imageBrand. Picture = cFile
7. End If
It happens only the first time I load up this form after starting Access.
After that, it never happens, even with the same image .gif file. It
happens if the code is in the Open or Load or Current event of the form.
Strange, huh?
I went into the Registry and set:
HKEY_LOCAL_MACH INE\Software\Mi crosoft\ Shared Tools\Graphics
Filters\Import\ GIF\Options\Sho wProgressDialog key value to "No".
Seems to have helped, but I'll know for sure in the next day or so.
property of an Image object. It throws error 2001: You canceled the
previous operation.
1. cFile = "D:\logos\" & frm.BrandCode & ".gif"
2. If Dir(cFile) = "" Then
3. frm.imageBrand. Visible = False
4. frm.lblNoImage. Visible = True
5. Else
6. frm.imageBrand. Picture = cFile
7. End If
It happens only the first time I load up this form after starting Access.
After that, it never happens, even with the same image .gif file. It
happens if the code is in the Open or Load or Current event of the form.
Strange, huh?
I went into the Registry and set:
HKEY_LOCAL_MACH INE\Software\Mi crosoft\ Shared Tools\Graphics
Filters\Import\ GIF\Options\Sho wProgressDialog key value to "No".
Seems to have helped, but I'll know for sure in the next day or so.