Link to home
Start Free TrialLog in
Avatar of birstein
birstein

asked on

Visual Basic RunTime Error 2114

We are getting a Visual Basic error on the Picture property of an Image control in an Access 2002 SP3 report on
Windows XP Professional SP1. The annoying thing is that its happening on only 3 machines while its NOT happening
on several other machines with the exact same version of XP and Access 2002. All machines have the same VBA
references checked.

The "Picture" in question is a small 136 KB TIF file on a network drive. The error message is "Microsoft Visual
Basic RunTime Error 2114. DATABASE name doesn't support the format of the file FILENAME.TIF or it is too large.
Try converting the file to BMP or GIF format."

I cannot find any information about this particular Error Code in msdn.microsoft.com or support.microsoft.com or in
Google. Could perhaps a malicious script be generating this error code? There is also an annoying problem on
these 3 machines where sometimes (not always!) one has to click command buttons twice instead of once to make them
run.

Any information anyone could provide would be very much appreciated. This is costing us a great deal of time and
frustration.

THANKS!

Kathryn
SOLUTION
Avatar of Data-Man
Data-Man
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Benjamin Lu
Benjamin Lu
Flag of China image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ps...

totally agree with Benjamin_Luk in regard to storing images as Binary Large Objects (BLOBs), there are many benefits to this approach, the least of which is succesfull upsizing and the ability to include image data in action queries such as append, delete, update.
More info here:
  http://www26.brinkster.com/alzowze/blobs.asp

Alan
Avatar of birstein
birstein

ASKER

Alan:

This is not the problem Will Scarlet7 solved because this is Access 2002, not Access 2003. However I will have the network administrator uninstall and reinstall the filters.

Also, it is not a problem of storing images because the picture is not stored in a table. It is an external 139 KB TIF file strored on a network drive, specifically, X:/bob.tif. The only thing stored in an Access table field, tifpath, which contains the string "X:/bob.tif". I then put this field as an invisible field on the report and in the VBA code for the report I reference the string value in this field:

Private Sub Detail_Format(cancel As Integer, FormatCount As Integer)
  imgSignature.Picture = Me.tifpath
End Sub

So no BLOB field is involved. . . .

Kathryn
If so, please replace the file with another tif file to X:\  drive, and try the testing. Or replace it with one JPG file for testing.
I still believe that it is because the TIF file filter hasn't been installed.
Once more thing, is this imgSignature one Image or OLE Object Frame ? If it is OLE Object Frame, that will not work, please try to use Image

Best Regards

Ben
When I told the desktop tech to make sure the TIF filters were installed for Microsoft Office, he realized that he hadn't assigned the TIF file type to a graphics editing program. The following steps solved the problem. Since everybody assisted in the solution, I've split the points. THANKS!

1. Open My Computer, go to Tools -> Options, select the File Types tab, scroll down to TIF
2. Click the Change button.
3. Click the Browse button and browse to C:\Program Files\Common Files\Microsoft Shared\PhotoEd and double-click on PHOTOED.EXE, click OK, click Close.