PDA

View Full Version : VB6 Headache!


trp
11-01-05, 10:00
Hello,
I have a problem, i am prototyping an A level project and cant figure something out, as a 'customer' requirement i need to link images to names, i am currently trying to do this via data sources and access 97 databases, the DB has and ID number which is required for the relationships, a permission boolean value and a filepath, this is currently set as text and i wonder if it should be a hyperlink, anyho, what i want to do is via linking the DB to a data source get the form to show both student name and their picture (jpg file) any idea's how i can achieve this?
TRP :cool:

Kodo
11-01-05, 10:37
a hyperlink datatype in the ms access db won't help you "link" it so you can click on it(in vb6).. just an fyi.

as for the relationships, just pull out the path to the file and set the path for an image object to the path of the image for that students id. make sense?

trp
11-04-05, 06:49
..no
do you mean id have to do something like the following:

Private Sub Image1_Click()
StudentImage.filename = FileLocation.text
End Sub

or am i completely missing the point?