I have no idea if this is related, but this is the strangest thing I ever seen if VBA. I posted this a while back, and got no real replies as to why.
Original Post:
I have a database with a lot of images of different pieces of equipment. I save the images in a seperate folder, and load them in to image controls when needed. All images are saved with their System ID (example System1.BMP, or System1.JPG) I did some modifications to my code last night and all of a sudden the quality of the images went substantially down. I was baffled and tried for hours to fix it, and could only find one difference in the old and new code. I look in the folder to see if a bitmap or jpg exists with the System ID. If it exists, I set the image path and file name and then use this to load the picture in the image control. Example:
strImagePath = "C:\MyPicture\" & systemID & ".BMP"
The change in code was that I used lower case ".bmp". Example:
strImagePath = "C:\MyPicture\" & systemID & ".bmp"
I did not believe that this could make a difference, so I tested it many times, and that was the sole cause. Same thing happened with ".JPG" and ".jpg". Anyone ever seen this or can explain what is going on?