Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Attachment Field Question

Posted on 2011-09-19
6
Medium Priority
?
341 Views
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 ?
0
Comment
Question by:stathisx
[X]
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
6 Comments
 
LVL 1

Author Comment

by:stathisx
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 ?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 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
Access-EEQ27315865FormViewMultip.accdb
0
 
LVL 1

Author Comment

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

thanks!
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36590022
ok
0
 
LVL 1

Author Comment

by:stathisx
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 :)
0
 
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.

JeffCoachman
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

718 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