linking pictures

peterbowles

Registered User.
Local time
Today, 23:39
Joined
Oct 11, 2002
Messages
163
Say you have a register system and you want to link a photo of the student to there record, what is the best way to link the photo to the record?

Cheers
 
Have a field in the table which stores the filepath location of the image.
 
could you explain a bit more, does any one have any examples
 
Concur with Dave

Just link (NOT EMBED) the image by having the picture file's fully qualified file spec (device, path, name, type) in your database for that person. Then, in the form's OnLoad event, load the picture file to the .picture property of an image control. Set the other properties so the image doesn't tile and so the alignment is centered. Have one more image floating around for the case where you don't have a picture file. Take a picture of a sign that says "No Photo Available." Use that for the default value of the .picture when you have a blank for the file name. Or make that value the default for the value in the table itself. Your call on exactly how.
 

Users who are viewing this thread

Back
Top Bottom