hi.. i tried to put picture on our system. in the employee form.. but i dont know the exact step on how.
i have here a code for opening the picture.. but i dont know how to save it in my database together with the information of the employee... here my code
cd.Filter = "PictureFile(*.jpg,*.bmp,*.gif)|*.jpg|*.gif|*.bmp|"
cd.ShowOpen
Image1.Picture = LoadPicture(cd.FileName)
i tried to use a field with an oleobject but i dont know how to work well..
this my saving procedure
Sub saverecord()
rsemployee.AddNew
rsemployee.Fields("EmployeeID") = txt1.Text
rsemployee.Fields("EmployeeName") = txt2.Text
rsemployee.Fields("EmployeePosition") = txt3.Text
rsemployee.Fields("Address") = txt4.Text
rsemployee.Fields("Age") = txt5.Text
rsemployee.Fields("Gender") = txt6.Text
rsemployee.Fields("PhoneNo") = txt7.Text
rsemployee.Fields("picture") = cd.FileName
rsemployee.Update
End Sub
i need an clear stepss...kindly help me....
thxxxxxxx
jaasaria