Attachment Field Question

Posted on 2011-09-19
Last Modified: 2012-05-12
Hello experts ,
i use the attachment field to store multiple images into a record of a patient. What i want to do is to display all the images stored in the table for this specific record i am browsing into a single form (popup). One picture next to other .
Is this possible ?
Question by:stathisx
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Author Comment

ID: 36561929
Alsoi forgot to ask :  is it possible to prevent user from entering anything else into the attachment field than picture images (jpg,png, etc.....) ?if yes is there any guidance to that ?
LVL 74

Accepted Solution

Jeffrey Coachman earned 125 total points
ID: 36563467
There does not appear to be a way to do this easily if you need side by side.

You can do this vertically by dropping in the "YourAttachmentField.FileData" field in place of the Raw Attachment field in the form.

However, for some reason this does not seem to work correctly when you try to open a filtered popup form for the same key value...?

The only way I could do this is if you moved to the specific ID in the popup form
(Based on passing the ID value in the OpenArgs.)

Sample attached

Author Comment

ID: 36588990
ok i will take a look at your suggested solution and i will post back.

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36590022

Author Comment

ID: 36595779
thanks man it worked. i would prefer to do it horizontally though but it is difficult to achieve that  if i understand well.
Thank you for the effort :)
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36596891
Yeah, it's curious that:
1. By default (just inserting the attachment field), you will only get 1 to display
2. If you insert the .FileData field you will get two only vertically, and only by moving to the record (not by filtering as you might expect)

I even tried enumerating the .filedata property (.filedata.Properties.Item(0), .filedata.Properties.Item(1)), ...but no luck their either.

So this question forced me to do some research as well.


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question