Help with Image Control for Access 2002 Runtime

  • Thread starter Thread starter Arvin Meyer
  • Start date Start date
I'm trying to locate a picture or image control that I can change its
picture property in runtime. The image control with its .Picture property
is not supported in Access 2002 runtime and continues to generate Runtime
Errors during execution, so I cannot change the picture path at will.
Please help.

TIA;
John Cosmas
 
The Image control I spoke of is a native Access control. Forms 2.0 controls
are not supported in Access (although some of them seem to work in some
versions) I certainly wouldn't count on them working version to version. You
do not have to embed an image in an Image control (or for that matter you
only need to embed 1 in an OLE control and can change it at runtime. I
cannot confirm that this later method works in MDE or runtime versions. I do
know that if you use variables with an Image control, you can change their
value in MDEs and I presume with runtimes.

There is a demo database on my website that you can make into an MDE and
test:

http://www.datastrat.com/Download/DocMgr_2K.zip
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
I tried this and it works:

Image1.Picture = LoadPicture("picture.gif")

To clear the picture you'd have to do this...

Image1.Picture = LoadPicture("")

This documentation is located in msdn. My question would be if this Form
2.0 control would be much more heavier on the final MDB. I'm loading and
unloading the image on the form so it would not have to embed the picture.
I've got a bit of Picture controls that I want to replace with Image
controls and want to know if its worth it.

TIA;
JohnC
 
Back
Top