Insert Image from database to Access Report (1 Viewer)

Alvein17

New member
Local time
Tomorrow, 04:21
Joined
Sep 2, 2021
Messages
29
Hello guys,

Have a good day sir/mom.

i would insert image in database table to report. i already create table to store file location from image, how to insert the image to access report? i have try to insert with this way but didn't work.
1644219178447.png


table name: Test
field1: pic
field2: path location
1644219368065.png


i want to know and learn how to do it?

thank you All.
 

Attachments

  • insert image.mdb
    276 KB · Views: 322
Last edited:

theDBguy

I’m here to help
Staff member
Local time
Today, 14:21
Joined
Oct 29, 2018
Messages
21,473
Bind the report to the table and then bind the picture control to the field.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:21
Joined
May 7, 2009
Messages
19,242
and if your Report is already bound to another table/query,
you add code to the Report's Load Event, to set the Picture
property of your Image control:

Private Sub Report_Load()
Me.Image0.Picture = DLookup("location", "test", "pic='Dwi'") & ""
End Sub
 

Alvein17

New member
Local time
Tomorrow, 04:21
Joined
Sep 2, 2021
Messages
29
and if your Report is already bound to another table/query,
you add code to the Report's Load Event, to set the Picture
property of your Image control:

Private Sub Report_Load()
Me.Image0.Picture = DLookup("location", "test", "pic='Dwi'") & ""
End Sub
hai arnel, thank you for your answer and i would try it.
 

Users who are viewing this thread

Top Bottom