F
Fred Boer
Hello:
I have a splash form with an image control. The image is linked, not
embedded. Suppose the linked image file is deleted. Access can't find the
picture and throws an error. I believe the error number is 2220. Where do I
trap this error? I've tried the usual suspects.. On Error, On Open, On
Activate, On Load, but on opening the form, the error seems to come before
any of these. I'd like to substitute a custom error message...
I am trying to give users the ability to customize a picture on the main
switchboard form. My idea is to have a hidden "default" picture which I'd
use if the "custom" picture isn't available for some reason. I'd flip their
visibility. The "default" picture would be embedded, so it couldn't be lost.
If I could trap the error when the custom picture is missing, I'd be able to
ignore the error and just pop up a custom messagebox, and use my default
picture. Is this a reasonable way to do it?
I thought about storing a default picture in a field in a table and doing a
DLookup in some way, but I can't even seem to store a picture so that it
shows up on a form properly...
Thanks!
Fred Boer
I have a splash form with an image control. The image is linked, not
embedded. Suppose the linked image file is deleted. Access can't find the
picture and throws an error. I believe the error number is 2220. Where do I
trap this error? I've tried the usual suspects.. On Error, On Open, On
Activate, On Load, but on opening the form, the error seems to come before
any of these. I'd like to substitute a custom error message...
I am trying to give users the ability to customize a picture on the main
switchboard form. My idea is to have a hidden "default" picture which I'd
use if the "custom" picture isn't available for some reason. I'd flip their
visibility. The "default" picture would be embedded, so it couldn't be lost.
If I could trap the error when the custom picture is missing, I'd be able to
ignore the error and just pop up a custom messagebox, and use my default
picture. Is this a reasonable way to do it?
I thought about storing a default picture in a field in a table and doing a
DLookup in some way, but I can't even seem to store a picture so that it
shows up on a form properly...
Thanks!
Fred Boer