A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pop Up behind Normal Form



 
 
Thread Tools Display Modes
  #1  
Old October 24th, 2008, 06:02 AM posted to microsoft.public.access.forms
ggregg
external usenet poster
 
Posts: 43
Default Pop Up behind Normal Form

I open a Main form in Normal mode. A button on the form opens a Pop up form
in Dialog mode. The Pop up and Modal properties are set to yes for the Pop
up form. Most of the time it works fine, but once in awhile the Pop up form
ends up behind the Main form. Does anyone have any suggestions on what could
cause that? Thank you very much.
  #2  
Old October 24th, 2008, 06:26 AM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Pop Up behind Normal Form

Timing. If code is being upstaged by another application, it can take longer
to run and the focus doesn't leave the Main form. Just add some code to the
routine which ends by setting focus back to a control on the popup. (or
visa-versa, if that's what you want).
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"ggregg" wrote in message
...
I open a Main form in Normal mode. A button on the form opens a Pop up
form
in Dialog mode. The Pop up and Modal properties are set to yes for the
Pop
up form. Most of the time it works fine, but once in awhile the Pop up
form
ends up behind the Main form. Does anyone have any suggestions on what
could
cause that? Thank you very much.



  #3  
Old October 31st, 2008, 10:04 PM posted to microsoft.public.access.forms
ggregg
external usenet poster
 
Posts: 43
Default Pop Up behind Normal Form

Thank you very much, this worked. We haven't had that problem all week.

"Arvin Meyer [MVP]" wrote:

Timing. If code is being upstaged by another application, it can take longer
to run and the focus doesn't leave the Main form. Just add some code to the
routine which ends by setting focus back to a control on the popup. (or
visa-versa, if that's what you want).
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"ggregg" wrote in message
...
I open a Main form in Normal mode. A button on the form opens a Pop up
form
in Dialog mode. The Pop up and Modal properties are set to yes for the
Pop
up form. Most of the time it works fine, but once in awhile the Pop up
form
ends up behind the Main form. Does anyone have any suggestions on what
could
cause that? Thank you very much.




  #4  
Old February 20th, 2009, 04:38 AM posted to microsoft.public.access.forms
ggregg
external usenet poster
 
Posts: 43
Default Pop Up behind Normal Form

I thought this problem was fixed, but I have tried all combinations of Set
Focus, Dialog mode, Pop up and Modal properties and the problem is still
occurring.
The user has told me that the only other application he has running may be
email.

The Pop up opens from the Main form and information needs to be entered into
it before any other code is executed. At what point would I use the SetFocus
command and what combination of properties would you recommend?

I appreciate any suggestions. thank you

"ggregg" wrote:

Thank you very much, this worked. We haven't had that problem all week.

"Arvin Meyer [MVP]" wrote:

Timing. If code is being upstaged by another application, it can take longer
to run and the focus doesn't leave the Main form. Just add some code to the
routine which ends by setting focus back to a control on the popup. (or
visa-versa, if that's what you want).
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"ggregg" wrote in message
...
I open a Main form in Normal mode. A button on the form opens a Pop up
form
in Dialog mode. The Pop up and Modal properties are set to yes for the
Pop
up form. Most of the time it works fine, but once in awhile the Pop up
form
ends up behind the Main form. Does anyone have any suggestions on what
could
cause that? Thank you very much.




  #5  
Old October 16th, 2009, 10:11 PM posted to microsoft.public.access.forms
ggregg
external usenet poster
 
Posts: 43
Default Pop Up behind Normal Form

I have finally fixed the problem and it had nothing to do with the Pop Up form.
It was my VBA code.


"ggregg" wrote:

I thought this problem was fixed, but I have tried all combinations of Set
Focus, Dialog mode, Pop up and Modal properties and the problem is still
occurring.
The user has told me that the only other application he has running may be
email.

The Pop up opens from the Main form and information needs to be entered into
it before any other code is executed. At what point would I use the SetFocus
command and what combination of properties would you recommend?

I appreciate any suggestions. thank you

"ggregg" wrote:

Thank you very much, this worked. We haven't had that problem all week.

"Arvin Meyer [MVP]" wrote:

Timing. If code is being upstaged by another application, it can take longer
to run and the focus doesn't leave the Main form. Just add some code to the
routine which ends by setting focus back to a control on the popup. (or
visa-versa, if that's what you want).
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"ggregg" wrote in message
...
I open a Main form in Normal mode. A button on the form opens a Pop up
form
in Dialog mode. The Pop up and Modal properties are set to yes for the
Pop
up form. Most of the time it works fine, but once in awhile the Pop up
form
ends up behind the Main form. Does anyone have any suggestions on what
could
cause that? Thank you very much.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.