Display records based on button selected in Access 2016

I have created a seating plan in a form for my works building to manage the hosts. I'm wanting to click on a seat and have all details display in the fields at the bottom inc. who sits there, what hosts, make/model of hosts .etc. It's possible for a desk to have multiple hosts (a PC, laptop, Mac .etc), yet only 1 user can be sat there. That's why I've set up multiple record entries at the bottom so up to 3 can be shown. See attached image. Form Each host is associated with a user. Could I display multiple records that are associated with a userid? How could I go about this?  Thanks in advance
Theron HoggAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
With that many controls, you would use WithEvents  to capture the click events without writing dozens of lines of code.
An example can be found here:

Create Windows Phone Colour Palette and Selector using WithEvents

/gustav
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale FyeOwner, Developing Solutions LLCCommented:
or use something like Screen.ActiveControl.Name to get the name of the image which was clicked.

and in the Click property (dialog box) of each of those controls, enter: =DisplayUserData()

With code like:

Private Function DisplayUserData()

    dim ctrl as control

    set ctrl = me.controls(screen.ActiveControl.Name).Caption

    'add code here to display the data associated with that position.

End Function

Open in new window

0
Jeffrey CoachmanMIS LiasonCommented:
Can you post your table designs and ERD
(Entity Relationship Diagram)
0
Gustav BrockCIOCommented:
Solutions provided.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.