1. Add a field named PicturePath (text data type) to your table. You need
to store the full path here to the picture for the record.
Ex:C:\MyApplication\MyPicture.jpg. Note that you need to include the
extension to make the path complete.
2. Be sure to include PicturePath in the recordsource of your form.
3. Add a hidden (Visible property set to No) textbox to your form and set
its controlsource to PicturePath. Also name the textbox "PicturePath".
4. Remove your bound object frame on the form and add an image control in
its place. Name it MyPicture. Note that an image control has a "Picture"
property. Go to the Help file and read how an image control works. Pay
particular attention to the Clip, Stretch and Fix size properties.
5. Add the following code to the Form's Current event:
Me!MyPicture.Picture = Me!PicturePath
Study this code so you understand what it is doing!!
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com www.pcdatasheet.com
<chrisse_2@hotmail.com> wrote in message
news:1126661379.722614.181230@z14g2000cwz.googlegr oups.com...[color=blue]
> Hi,
>
> All the records in my database will contain at least one picture. At
> the moment all the images are part of the database as ole objects
> although the database is way to big and there is only 12 records in it.
>
> I have been reading about linking images into the database and i would
> like to use the method linking via code this way the database will be
> as small as possible.
>
> Can someone help me do this as i am having trouble understand the
> method.
>
> Thanks in advance.
>
> Christina
>[/color]