B
BarbaraC
I am having trouble with an image control! I have the
code working fine to display a different photo for each
record based upon the path and file name stored in the
database. However, if I try to display a JPG file it
looks fine, but a BMP file appears to be displaying with
only 256 colors instead of 24 bit. I would really like to
use BMP files (since that is what the user is already
using). What could the problem be?
I originally tried using a bound object frame and set OLE
Type Allowed property to "Linked", however my database
grew enormously so it appears that the files were actually
being embedded??? However I had no problem displaying the
BMP files via the bound object frame! The code I used for
this was....
Sub InsertPicture_Click()
[Photo].OLETypeAllowed=acOLELinked
[Photo].SourceDoc = Browse(Me) --- user picks file
[Photo].Action=acOLECreateLink
[Photo].SizeMode=acOLESizeStretch
End Sub
I don't really care which way I have to do it... just so
the files are not embedded and I can use BMP files!
Thanks for any help!
code working fine to display a different photo for each
record based upon the path and file name stored in the
database. However, if I try to display a JPG file it
looks fine, but a BMP file appears to be displaying with
only 256 colors instead of 24 bit. I would really like to
use BMP files (since that is what the user is already
using). What could the problem be?
I originally tried using a bound object frame and set OLE
Type Allowed property to "Linked", however my database
grew enormously so it appears that the files were actually
being embedded??? However I had no problem displaying the
BMP files via the bound object frame! The code I used for
this was....
Sub InsertPicture_Click()
[Photo].OLETypeAllowed=acOLELinked
[Photo].SourceDoc = Browse(Me) --- user picks file
[Photo].Action=acOLECreateLink
[Photo].SizeMode=acOLESizeStretch
End Sub
I don't really care which way I have to do it... just so
the files are not embedded and I can use BMP files!
Thanks for any help!