Attachment Field Question

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 ?
LVL 1
stathisxAsked:
Who is Participating?
 
Jeffrey CoachmanMIS LiasonCommented:
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
 
stathisxAuthor Commented:
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
 
stathisxAuthor Commented:
ok i will take a look at your suggested solution and i will post back.

thanks!
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
Jeffrey CoachmanMIS LiasonCommented:
ok
0
 
stathisxAuthor Commented:
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
 
Jeffrey CoachmanMIS LiasonCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.