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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automated image import in Access

Status
Not open for further replies.

gasca

Programmer
Apr 2, 2003
22
0
0
ES
Hi,

Anyone's got any clue on how to import automatically some jpg pictures into an OLE Object data field using some VBA code in Access? Let's say I have every picture named in a uniform way (identifier of register,...)

Thanks.
 
Storing jpgs in an Access table would be a big mistake. This would increase your mdb size to unbelieveable proportions. It is best to store the file name and then update the Picture property of an image control with some code. You can use the On Current event

Me.image.Picture = Me.picFileName


Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top