mga tol patulong nman po s image control ng vb6.pano po b mag store ng picture from a folder and ung path nya masasave s database q s access?svi kz d daw advisable n s access magsave ng images directly mas mganda daw s app.path nya kukunin un pic..pero pano po un?
e2 po code q to insert an image
dim strPic as String
Private Sub cmdInsertPic_Click()
With cdlgImage
.FileName = ""
.Filter = "Image (*.gif; *.jpg; *.png; *.bmp)|*.gif *.jpg; *.png; *.bmp"
.ShowOpen
If Len(.FileName) <> 0 Then
strPic = .FileName
Set rstCustomers = New ADODB.Recordset
rstCustomeers.Open "insert into tblCustomers(Picture) values('" & strPic & "') ", c, adOpenKeyset, adLockOptimistic
MsgBox "Picture Succesfully Added", vbInformation, "Record Addition"
imgPicture.Picture = LoadPicture(.FileName)
End If
End With
End Sub
tinitignan q s database qng nasasave ung path pero ayaw nya pero pag gumawa q ng code n palabasin ung strpic s textbox lumalabas ung path..text ung data type ng picture field q s access..
pls p2long po ntry q n ung magsave mismo s database using .stream pero lalaki lng daw ung access file q and babagal pano pag s folder q kukuhanin ung path? ano ilalagay to save the path s database para malagay s .loadpicture?