Run-Time Error 2001 Importing Linked Images with Mouse Snap-To Turned On

G

Guest

This seems to weird to be true, but apparently it is.

I have an Access 2003 form that displays, among other things, a text field
containing the name of a JPG image file and an image control that displays
the corresponding linked JPG. The name of the file is assigned to the
..Picture property of the image control in code. I have a similar report
with similar data and similar code.

For each record displayed in the form or report, a message box appears on
the screen indicating that Access is, for example, "Importing
C:\Images\TestImage.jpg." When Snap-To is turned on in the Windows mouse
control panel, the mouse pointer moves to the location of the Cancel button
of the message box.

Here's the weird part:

A seeming Access bug sometimes raises error 2001 ("You canceled the previous
operation") when the user advances to the next record in a form by clicking
in the left-margin record selector or in a field in a record other than the
current one. This does not occur when he uses the record-navigation
controls at the bottom of the screen, uses the Up/Down cursor keys when the
cursor is already in the left-margin record selector, or uses the Tab or
Left/Right cursor keys to move through one record to the next.
Experimentation reveals that the problem occurs only when mouse "snap-to" is
enabled, involving some interaction between the snapping and the briefly
visible import message box.

I also noticed that, when selecting a record by clicking (ever so quickly
and gently) in the left-margin record selector, and this error did NOT
occur, multiple records would sometimes wind up being selected.

Has anyone else encountered this sort of behavior?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top