Hi everyone. I want to ask a question on how to show pictures (jpg files) from access database to a form
I have a database called DataBase, i have some fields there. One is called picture, and the data type is attachment.
and i have the following code
Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql As String
Dim inc As Integer
Dim MaxRows As Integer
sql = "SELECT * FROM Staff"
da = New OleDb.OleDbDataAdapter(Sql, con)
da.Fill(ds, "DataBase")
txtFname.Text = ds.Tables("DataBase").Rows(inc).Item(1)
txtLastName.Text = ds.Tables("DataBase").Rows(inc).Item(2)
txtJob.Text = ds.Tables("DataBase").Rows(inc).Item(3)
picture.? = ds.Tables("DataBase").Rows(inc).Item(4) ??? 'How do i display picutures from my database which is Item(4)???
MaxRows = ds.Tables("DataBase").Rows.Count
inc = -1
I have a PictureBox named picture. So my question is, How do i display the picture from my access database which is Item(4) following the above pattern of displaying all other data in textbox?
Thank You.