D
Dustirhode
How do I show different pictures in individual Access database records (forms
view)?
view)?
Mark said:You need to store the pictures in a separate folder from the database. DONE
field named PicturePath to your table DONE
PicturePath in the recordsource of your form. Put the following code in the
Current Event of the form:
Me!NameOfYourImageControl.Picture = Me!PicturePath.
Tanya said:Hello Mark
I am trying to achieve the same objective, however I don't fully
understand
your instructions.
Add a
and record the full path to the picture for each record. HOW DO YOU DO
THIS, WHAT DATA TYPE IS THIS?
Add an image control to your form I WILL CONTEMPLATE THIS MORE WHEN I
UNDERSTAND YOUR EARLIER INSTRUCTIONS.
. Be sure you have
Rob said:Hi Tanya,
Did you notice this instruction in my previous response:
Put the following code in the Current Event of the form:
Me!StudentImageControl.Picture = Me!StudentPicture
The Current Event fires when the form opens and each time your form goes to
a new record. Thus the image control will display the picture of the student
in the opening record and each time you change to a new student, the mage
control will display the new student.
Steve
Tanya said:Hi Mark
I have set up my form with the text field 'picture' which contains the
default path and another textfield called picturepath which concatenates
[Picture]&[StudentID]&".jpg" and ImageControl is directed to PicturePath,
and
this works wonderfully when activating the event code
Me!ImageControl.Picture
= Me!PicturePath, however the event code is activated by mouse click and
does
not update when the form is opened or a new record is selected.
Ideally, I would like to see the student image when focus is on a record
or
perhaps a particular field and would like it updated with each record to
reflect a different student.
Kind Regards
Tanya
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.