When I'd like to load an image onto a form, how do I deal with the error that results when the image doesn't exist? I can exit the sub based on "on error" - but that won't work when there are several images on the page (because each has its own error message).
As you can see, I've templatized the names and locations of the images (path + state name + file suffix) - but what to do when the image doesn't exist yet?
Dim fName2 As String
errormsg.Visible = False
fName2 = "C:\Documents and Settings\ ... \images\" & StateAbbreviated.Value & "-tb.gif"
Me![State-tb].Picture = fName2
showImageFrame
errormsg.Visible = False
Me.PaintPalette = Me![State-tb].ObjectPalette
Any suggestions? (would be much appreciated)
As you can see, I've templatized the names and locations of the images (path + state name + file suffix) - but what to do when the image doesn't exist yet?
Dim fName2 As String
errormsg.Visible = False
fName2 = "C:\Documents and Settings\ ... \images\" & StateAbbreviated.Value & "-tb.gif"
Me![State-tb].Picture = fName2
showImageFrame
errormsg.Visible = False
Me.PaintPalette = Me![State-tb].ObjectPalette
Any suggestions? (would be much appreciated)