Hey, I am using an ADO control to display records from my database and I want pictures to be shown to from a field in the same table, it has the pat hto the picture, I am using an image control to show them, when the form is loaded I am trying to get it too display the current record picture, here is my code
VB Code:
Private Sub Form_Load() browseConn = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\Documents and Settings\Rob\Desktop\VB\contacts.mdb" browseConn.Open browseRecc.Open "SELECT * from Contacts WHERE Name='" & lblName.Caption & "'", browseConn, adOpenDynamic, adLockOptimistic imgAvatar.Picture = LoadPicture(" & browseRecc(" & avatar & ") & ") End Sub
And then when I run it, it says 'File could not be found & browseRecc() &'
can someone please help ?







Reply With Quote