mock5c
asked on
Runtime error 490 and followhyperlink
I have a form that has a function GetDirectoryFiles() and populates a listbox. In the listbox, I see each of the files in the directory. It's supposed to work where I can double click on a filename and it will open the file using its associated program.
Here's the problem. When I double click on any of the jpg files that show up in the listbox, I get a runtime error 490. It's failing at a line of code with followhyperlink. To make things interesting, it does NOT fail with I double click on .doc files. Anything come to mind why that would be? The jpg files are associated with an image viewing program. I actually changed that to use IE but it still fails.
Here's the problem. When I double click on any of the jpg files that show up in the listbox, I get a runtime error 490. It's failing at a line of code with followhyperlink. To make things interesting, it does NOT fail with I double click on .doc files. Anything come to mind why that would be? The jpg files are associated with an image viewing program. I actually changed that to use IE but it still fails.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried to reproduce the problem on another computer but it works fine. The problem computer has Access 2002. The new computer has 2003.
Have you tried the workaround I presented?
ASKER