Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Attachment Picture in Report

Attachment Picture in Report

Attachment Picture in Report

I cannot get a picture to show in my report.

I have a tblpictures

Field 1       pictureid
Field 2       picturename
Field 3       picture <-- this shows as a paperclip in table 

I have an attachment control with control source


"SELECT tblpictures.picture.FileData
FROM tblpictures
WHERE (((tblpictures.[picturename])='corrosive'))" 

It does not work

Have also tried


"SELECT tblpictures.picture
FROM tblpictures
WHERE (((tblpictures.[picturename])='corrosive'))" 

Property of "Display As" is Image/icon

it shows an emtpy box. Table name is correct and fieldname is correct. Have replace . with ! and that had no affect.

When I run an sql datasheet view on


"SELECT tblpictures.picture
FROM tblpictures
WHERE (((tblpictures.)='corrosive'))" 
I get the paperclip in a cell and can double click to open

What I am I doing wrong.



RE: Attachment Picture in Report

I doubt you can make a control source a select statement. You can only do that with rowsources. Why not make the form bound and then just set the control to the filedata field. I you have to have a different rowsource for the main form than put the attachment control inside a subform control.

RE: Attachment Picture in Report

I am having three or 4 picture put in different places on report. Is there away in vba?


RE: Attachment Picture in Report

Sure, but you need to explain in better detail. How are the pictures saved, attachment, linked, ole etc? What pictures are you trying to show in relation to the report. How is the report set up?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close