DB.openDB
Dim sql As String
sql = "select * from pic where P_name='" & ypxinxi.List1.Text & "'"
Set rst = DB.queryDB(sql)
If Not rst.EOF Then
With xiugaifilm
.txtName.Text = rst(1)
.txtdaoyan.Text = rst(2)
.txtzuyan.Text = rst("P_zy")
.txtTime.Text = rst("P_time")
.txtinfo.Text = rst("P_jj")
.Image1.Picture = LoadPicture(App.Path & "\图标\" & rst("P_pic"))
End With
End If