C
Chris
hey
here's the problem. it is for an assignment.
i have this code.
Private Sub cmdGetIt_Click()
adoprez.Recordset.MoveFirst
adoprez.Recordset.Find "Name = " & lstName.Text, ,
adSearchForward
If adoprez.Recordset.EOF = True Then
adoprez.Recordset.MoveFirst
imgPortrait.Picture = LoadPicture(txtImgLocate)
End If
imgPortrait.Visible = True
imgPortrait.Picture = LoadPicture(txtImgLocate)
End Sub
basically im trying to allow the user to click on any name
from the list box and click the find button. the picture
wont load and there is something wrong with the find
segment. help?
here's the problem. it is for an assignment.
i have this code.
Private Sub cmdGetIt_Click()
adoprez.Recordset.MoveFirst
adoprez.Recordset.Find "Name = " & lstName.Text, ,
adSearchForward
If adoprez.Recordset.EOF = True Then
adoprez.Recordset.MoveFirst
imgPortrait.Picture = LoadPicture(txtImgLocate)
End If
imgPortrait.Visible = True
imgPortrait.Picture = LoadPicture(txtImgLocate)
End Sub
basically im trying to allow the user to click on any name
from the list box and click the find button. the picture
wont load and there is something wrong with the find
segment. help?