Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

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 ?
0
stathisx
Asked:
stathisx
  • 3
  • 3
1 Solution
 
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
 
Jeffrey CoachmanCommented:
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:
ok i will take a look at your suggested solution and i will post back.

thanks!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Jeffrey CoachmanCommented:
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 CoachmanCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now