Form focus question

lskuff

Registered User.
Local time
Yesterday, 18:22
Joined
Aug 10, 2003
Messages
14
I have a question that I guess is pretty easy to correct...but I don't know how. I have a form which links to another form with a button. The problem is that when the button is clicked the focus stays on the first form and the form that I want to open is in the background and even if i click to focus it the other form is always on top. THanks
 
Set your other form to modal too. Or make none of them
modal.

Wayne
 
isn't that pop-up?

if the form is modal, it would be impossible to click the other form to set focus [as I understand it]
 
pc,

Well, while we're waiting ...

What if the button to launch the other form is ON the modal
form?

Wayne
 
Wayne,

As I understand them [please educate me if I'm wrong] Pop-up forms are always on top but will surrender focus to another form. Modal forms will not surrender focus with a mouse click on the other form. If both properties are set to yes, you get a dialog box that will allow you to do nothing else until you close it.

But lskuff said: "and even if i click to focus it the other form is always on top." so what I read tells me that he CAN set focus to the second form with a mouse click, so his PopUp property is set to yes, but Modal is set to no.

Your specific question: "What if the button to launch the other form is ON the modal form?" The modal form will open the 2nd form and then pass focus to it.

If both are modal, the 1st must be closed in order to give focus to the 2nd.
 
pcEars,

I just woke up.

Isn't the second form "modalier", the "modalest", I think I'll
just make a test and see.

Wayne
 
pcEars,

I'm awake, the second form will also be modal, and when it
relinquishes control, focus will return to the first modal
form.

They are equi-modal.

Wayne
 
Wayne,

I'm sorry... but you're right :D :D

But how about Iskuff? As far as I can see (how far? :) ) the problem is solved?

Greetz
Bert
 
Bert,

I know, but my reply to Iskuff and pcEars was just what I thought.
But with Access sometimes you just have to try it and see.

Wayne
 
Rich,

Is it possible that this is something that has varied between versions of Access? I tested my beliefs in A2002, and I'm pretty sure that's what I've got happening. Of course, I'm not using code to change the focus, just the mouse. Or maybe we're saying the same thing in different words... I am curious to be certain.

Wayne,

I stand corrected, They are equi-modal if the second is opened from the modal form. But if opened separately, not true.
 
pcEars,

I made to modal forms (A2000) and launched #1 then #2.

#2 had the focus and was modal, when it relinquished control
#1 had the focus and was modal.

That's how it behaves in Access 2000.

Wayne
 
Well I set both forms with modal = off and I set pop-up = yes on the form that I want to open and now everything works. Thanks!
 
And my education continues... (Could someone please remind me to shut up?)
 

Users who are viewing this thread

Back
Top Bottom