dbTalk Databases Forums  

Graphics in a database?

comp.databases.ms-access comp.databases.ms-access


Discuss Graphics in a database? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rfdjr1@optonline.net
 
Posts: n/a

Default Graphics in a database? - 01-22-2008 , 12:29 AM






I have a simple database using Access 2000 which currently has three fields. I
keep track of my lighthouse collection. The fields are all text, and list the
name of the light, which company it's from, and what state it's located in. I
was wondering if it's possible using Access to add another field and insert a
picture of each light as part of the database? Thanks for any insight.


Reply With Quote
  #2  
Old   
Phil Stanton
 
Posts: n/a

Default Re: Graphics in a database? - 01-22-2008 , 12:09 PM






Best way is to store your pictures in an external folder say ....My
Documents\Lighthouse Pictures\Eddyston Light. Then in your table you store
the path say LighthousPath (Text 255 characters) and on your form you have
an image control called LightHousePic. On the form OnCurrent event you heve
a simple line of code

Me.LightHousePic.Picture = Nz(LighthousPath)

Do not use OLE objects (the alternative way) as the bloat your database
HTH

Phil


<rfdjr1 (AT) optonline (DOT) net> wrote

Quote:
I have a simple database using Access 2000 which currently has three
fields. I
keep track of my lighthouse collection. The fields are all text, and list
the
name of the light, which company it's from, and what state it's located
in. I
was wondering if it's possible using Access to add another field and
insert a
picture of each light as part of the database? Thanks for any insight.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.