Form Focus

I'm doing something different with Access and need to have focus to two different controls at the same time - Is it possible and if so how.  (I know of one way but don't like it - see bottom)

If you look at the graphics attached, the top is a form from Northwind.  When the user clicks on the subform it highlights the row clicked on.  If you click on the combo of bill to or any other control the small arrow stays on the subform but the rest is un-highlighted.

I want a form similar to the bottom of the graphic where the user can click on a control on the right and one on the left, then click a button.  Is there a way to have focus two different places at once?

What works but I don't like is if one of the controls is on a subform of a subform.

Thanks in advance for any help.
LJG
TreeView-To-ExpEx3.jpg
LVL 2
LJGAsked:
Who is Participating?
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.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
"Is there a way to have focus two different places at once?"
Not that I have ever seen.

"is if one of the controls is on a subform of a subform."
There is no way two controls have the Focus at exactly the same time.

mx.
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
Don't confuse 'selected'  ("he small arrow stays on the subform but the rest is un-highlighted.") with Focus.  It's not the same thing.

In code, Screen.ActiveControl.Name  will tell you the control that currently has the focus ... and it's only going to be *one* control.

mx
0
LJGAuthor Commented:
DatabaseMX:
Thanks -
I understand that the actual focus can only be on one control.  Maybe a better way to put it is that two different controls are highlighted from the user's point of view.  

The perfect situation would be the user to highlight Terry on the left and Merry Christmas on the right (bottom of graphic) so it is clear to the user they are adding Merry Christmas to Terry when they click the button,

Thanks Again.
LJG
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
Well ... I see what you are doing in the treeview control ... So, based on the upper section of the form ... what is a example there ?

0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
You can certainly get that effect with a pair of list boxes ...

mx
0
LJGAuthor Commented:
DatabaseMX:
I was just showing the upper part of the graphic to make it clear how focus changes.

Are you saying there is a way with Treeview control and list box to accomplish what I'm talking about?
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
Well, your treeview book notes is already showing this, right?

If you have two side by side list boxes,  if you make a selection on one ... that will remain selected even if you click into another control - say the other list box. If you make a selection there, now you see both selected.

mx
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
LJGAuthor Commented:
DatabaseMX
Thanks for the info it was right on.  The problem is that the customer has changed their mind and now wants two treeviews controls.  Because of this, I'm going to re-ask the question in a different question.
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
lol (sort of) ...

ok.

thx
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
Microsoft Access

From novice to tech pro — start learning today.