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  

How do I "Bring to Front" in VBA?



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2008, 04:51 PM posted to microsoft.public.access.forms
M Skabialka
external usenet poster
 
Posts: 570
Default How do I "Bring to Front" in VBA?

I have a form which is divided into sections where each background is a box.
This makes it easier to manage the info for the user. However there are
some functions I have placed on one of the boxed areas that I don't want all
users to see. I am looking for a setting that will cause this box to use
the "Bring to Font" property, rather than make all of the controls on it not
visible. When I look at the proprties in Intellisense, Bring To Front and
Send to Back are not there. How do I do this?
Mich


  #2  
Old April 15th, 2008, 06:18 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default How do I "Bring to Front" in VBA?

You would probably need to use code on the onclick event of the form to set
me.visible=true or me.visible=false as needed.

"M Skabialka" wrote:

I have a form which is divided into sections where each background is a box.
This makes it easier to manage the info for the user. However there are
some functions I have placed on one of the boxed areas that I don't want all
users to see. I am looking for a setting that will cause this box to use
the "Bring to Font" property, rather than make all of the controls on it not
visible. When I look at the proprties in Intellisense, Bring To Front and
Send to Back are not there. How do I do this?
Mich



  #3  
Old April 15th, 2008, 10:32 PM posted to microsoft.public.access.forms
M Skabialka
external usenet poster
 
Posts: 570
Default How do I "Bring to Front" in VBA?

I have a colored box with a dozen or so buttons and fields on top - I wanted
the box to come to the top for some users and stay behind the buttons for
others. I Googled this issue and have come to the conclusion this is not
possible - Bring to Front and Send to Back are design time features only. I
created an identical box, put it on top and make it visible or not depending
on the user.

"Golfinray" wrote in message
...
You would probably need to use code on the onclick event of the form to
set
me.visible=true or me.visible=false as needed.

"M Skabialka" wrote:

I have a form which is divided into sections where each background is a
box.
This makes it easier to manage the info for the user. However there are
some functions I have placed on one of the boxed areas that I don't want
all
users to see. I am looking for a setting that will cause this box to use
the "Bring to Font" property, rather than make all of the controls on it
not
visible. When I look at the proprties in Intellisense, Bring To Front
and
Send to Back are not there. How do I do this?
Mich





  #4  
Old April 16th, 2008, 05:53 PM posted to microsoft.public.access.forms
George Nicholson
external usenet poster
 
Posts: 791
Default How do I "Bring to Front" in VBA?

These aren't object properties per se, they are instructions that the user
interface provides (which evidently set some other GraphicLayer property
that is not exposed).
Docmd.RunCommand acCmdBringToFront
Docmd.RunCommand acCmdSendToBack

However, afaik they will only work while the form is in Design view.
Invoking them while in Form View generates a "..not available now.."
message, so manipulating Visible is the more dynamic solution.

--
HTH,
George


"M Skabialka" wrote in message
...
I have a form which is divided into sections where each background is a
box. This makes it easier to manage the info for the user. However there
are some functions I have placed on one of the boxed areas that I don't
want all users to see. I am looking for a setting that will cause this box
to use the "Bring to Font" property, rather than make all of the controls
on it not visible. When I look at the proprties in Intellisense, Bring To
Front and Send to Back are not there. How do I do this?
Mich



 




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 05:04 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.