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 Form Focus Question



 
 
Thread Tools Display Modes
  #1  
Old October 19th, 2009, 09:24 PM posted to microsoft.public.access.forms
AccessIM
external usenet poster
 
Posts: 81
Default Pop Up Form Focus Question

I have a form with the pop-up and modal proerties set to yes. The pop-up
form contains a list box of names and, when the user double-clicks a name on
the list, a report opens using the information from the list box as criteria.
As it stands now, the pop-up form stays on top of the report and it is very
difficult to read.

I would like the report to have the focus when it opens. Then, when the
user closes the report, the pop-up form will regain focus and they can select
another name or close the pop-up form.

Is this possible?
  #2  
Old October 19th, 2009, 09:38 PM posted to microsoft.public.access.forms
bhicks11 via AccessMonster.com
external usenet poster
 
Posts: 529
Default Pop Up Form Focus Question

You will need to set the pop-up to non-modal. You can't move focus off a
modal form.

Bonnie
http://www.dataplus-svc.com

AccessIM wrote:
I have a form with the pop-up and modal proerties set to yes. The pop-up
form contains a list box of names and, when the user double-clicks a name on
the list, a report opens using the information from the list box as criteria.
As it stands now, the pop-up form stays on top of the report and it is very
difficult to read.

I would like the report to have the focus when it opens. Then, when the
user closes the report, the pop-up form will regain focus and they can select
another name or close the pop-up form.

Is this possible?


--
Message posted via http://www.accessmonster.com

  #3  
Old October 19th, 2009, 09:41 PM posted to microsoft.public.access.forms
Mr. B[_4_]
external usenet poster
 
Posts: 171
Default Pop Up Form Focus Question

Set your popup form to not visible when you open the report.
me.visible = false

Then in the On Close event of your report, set the popup form back to
visible.
forms!NamOfForm.Visible = true

-----
HTH
Mr. B
http://www.askdoctoraccess.com/
Doctor Access Downloads Page:
http://www.askdoctoraccess.com/DownloadPage.htm


"AccessIM" wrote:

I have a form with the pop-up and modal proerties set to yes. The pop-up
form contains a list box of names and, when the user double-clicks a name on
the list, a report opens using the information from the list box as criteria.
As it stands now, the pop-up form stays on top of the report and it is very
difficult to read.

I would like the report to have the focus when it opens. Then, when the
user closes the report, the pop-up form will regain focus and they can select
another name or close the pop-up form.

Is this possible?

  #4  
Old October 20th, 2009, 12:55 PM posted to microsoft.public.access.forms
Mr. B[_4_]
external usenet poster
 
Posts: 171
Default Pop Up Form Focus Question

As I stated in my first post, in the code where you are opening the report,
just place the line of code:
Forms!NameOfYourForm.Visible = false

I will not matter that the form is set to Popup and Modal, the report will
then be visible and the form will not be in front of it.

Now, also in the On Close event of your report, you need the line:
Forms!NameOfYourForm.Visible = true

To again make the form visible. Using this, you can have the user provide
info in your form, open the report, close the report and then the user can
provide different info on the form and again open the report.


-----
HTH
Mr. B
http://www.askdoctoraccess.com/
Doctor Access Downloads Page:
http://www.askdoctoraccess.com/DownloadPage.htm


"bhicks11 via AccessMonster.com" wrote:

You will need to set the pop-up to non-modal. You can't move focus off a
modal form.

Bonnie
http://www.dataplus-svc.com

AccessIM wrote:
I have a form with the pop-up and modal proerties set to yes. The pop-up
form contains a list box of names and, when the user double-clicks a name on
the list, a report opens using the information from the list box as criteria.
As it stands now, the pop-up form stays on top of the report and it is very
difficult to read.

I would like the report to have the focus when it opens. Then, when the
user closes the report, the pop-up form will regain focus and they can select
another name or close the pop-up form.

Is this possible?


--
Message posted via http://www.accessmonster.com

.

 




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:53 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.