Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enter Path for picture to be load in OLE Object in Access.

Status
Not open for further replies.

1x2z3

Programmer
Sep 18, 2003
39
ZA
How can I Link my OLE Object to a Textbox where I entered the path of my graphic to be loaded into the OLE Object.
Want to do it without Right Clicking on the OLE Object - Insert Object - Create New/Create from file and so forth.

What coding can I use...
 
Hi,
Assuming that you have a list of images (complete with path, e.g., lstImageNames), you can use this code:
OLEUnboundProductImage.Picture = lstImageNames.Value

I have a free database that demonstrates this (frmProductMaintenance), as well as a home-made security login screen, and a homemade menu system. Just send me an email, and I can send the Coredatabase.zip (about 2mb) directly to you.


HTH, [pc2]
Randy Smith, MCP
rsmith@cta.org
California Teachers Association
 
Thanks Randysmith my E-Mail Address is: jsnel@absamail.co.za
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top