I found a few prior threads where this error was reported, but no real workable solution. Please pardon me if I overlooked one.
Description of problem:
A form which displays a text field containing path information to a JPG image and an Image control on the form to display the JPG. In the OnCurrent event, the image control's Picture property is set to the image path from the text field. The Picture Type property is Linked. This works okay - displaying the image as you step thru the records by clicking the Navigation buttons or using PgUp/PgDn.
The problem occurs when stepping thru the records by clicking the Record Navigation buttons faster than the new image can be displayed. After a dozen or so records, the error occurs. The error seems not to be trapable.
The specific error is
Remove the form's navigation buttons by setting the Navigation Buttons property to No. Add Record Navigation buttons to the menubar or create a custom menubar with Record Navigation buttons to allow navigating thru the records with a mouse.
Note: There may be a fix which can be done within the event that triggers the error, but I have yet to find one. So, if someone has a coding fix, I would love to see it. In the meantime, perhaps this workaround will help.
Description of problem:
A form which displays a text field containing path information to a JPG image and an Image control on the form to display the JPG. In the OnCurrent event, the image control's Picture property is set to the image path from the text field. The Picture Type property is Linked. This works okay - displaying the image as you step thru the records by clicking the Navigation buttons or using PgUp/PgDn.
The problem occurs when stepping thru the records by clicking the Record Navigation buttons faster than the new image can be displayed. After a dozen or so records, the error occurs. The error seems not to be trapable.
The specific error is
Possible Workaround:Tested with A2K on Win XP onlyRun-time error '-2147417848(80010108)';
Method 'Picture' of object '_image' failed
Remove the form's navigation buttons by setting the Navigation Buttons property to No. Add Record Navigation buttons to the menubar or create a custom menubar with Record Navigation buttons to allow navigating thru the records with a mouse.
Note: There may be a fix which can be done within the event that triggers the error, but I have yet to find one. So, if someone has a coding fix, I would love to see it. In the meantime, perhaps this workaround will help.