Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - Pictures.mdb (beginner)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


Please consider donating $1 per sample downloaded, (find out why here)

Pictures.mdb (beginner)

 Post Reply Post Reply
Author
Message Reverse Sort Order
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 249
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: Pictures.mdb (beginner)
    Posted: 28 Jul 2008 at 11:15pm

Please consider donating $1 per sample downloaded, find out why here.
 

Pictures.mdb

It is usually preferable NOT to store OLE objects like pictures in the table itself. It causes massive database bloat. The usual solution is to store the pictures as files on the hard drive and store the file name in the table. This sample demonstrates how to to this.

1) Store the pictures (in this case JPEGs) in the same directory as the database. 2) Store the appropriate picture name in the table. 3) Programmatically set the .Picture property of an Image Box to the appropriate file in the On Current event of the form.
 
Download
Access 97 (231 KB):
uploads/5/Pictures97.zip
Access 2000 (163 KB): uploads/5/Pictures2k.zip

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down