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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|