Form Order on the screen

Princessboko

Board Regular
Joined
Nov 3, 2002
Messages
73
I created several forms. In one form - form(A) you can hit a control key and open form(B). I want form(B) to display on top of the form(A). For some reason form(A) always comes on top of everything. I can't figure out how to make it go to back when form(B) displays itself.

Is it somewhere in the forms properties?

:confused:

Thank you!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
The first thing to do is check the form's properties that stays on top of everything. If Pop-up is set to "Yes", then it will stay on top of all other forms. Another thing to do is to write some simple code in the "On-Click" event of the command button that calls Form B that will hide Form A. Have another command button on Form B that, when clicked does the opposite; hide Form B and show Form A. If this sounds like a good idea, I'll give you the syntax for the code if you don't know how to do it.
 
Upvote 0
Thank you! Dugantrain

I changed the Pop-UP to “NO” and that took care of it - THANK YOU!

I would be interested in the code for the other option you mentioned, cuz that would be cool addition.

Thanks again! :P
 
Upvote 0
Using the command button wizard, place a command button on your form and follow its instructions to open the form that you're looking to open. After this, you need to add some code to the code that was generated by the wizard. Go into the Code window, find the procedure for that command button, and directly under where you see:
Docmd.open "The name of the form that you just opened"
type:
me.visible=false

Do the same thing for the second form's command button to call the first form and hide itself.
 
Upvote 0

Forum statistics

Threads
1,221,497
Messages
6,160,154
Members
451,625
Latest member
sukhman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top