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  

Toggle buttons in form



 
 
Thread Tools Display Modes
  #1  
Old June 11th, 2004, 08:42 PM
Juan
external usenet poster
 
Posts: n/a
Default Toggle buttons in form

Hello,
have a form with a option group that contains 4 toggle
buttons. My question is, after i click the button to run a
macro, the button stays as if its Clicked, is there a way
to make the button show as if it hasn't been clicked? Also,
is there a way so that the form doesn't move with the
mouse? Basically, I want the form to appear in center and
don't be moved by dragging the mouse.

Please advise any info, really appreciated.

thanks,

Juan
  #2  
Old June 12th, 2004, 12:31 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Toggle buttons in form

1. At the end of the Macro, set the value of the OptionGroup to something
different than the 4 values of the 4 ToggleButtons.

2. Set the Moveable Property of the Form to False/No.

--
HTH
Van T. Dinh
MVP (Access)




"Juan" wrote in message
...
Hello,
have a form with a option group that contains 4 toggle
buttons. My question is, after i click the button to run a
macro, the button stays as if its Clicked, is there a way
to make the button show as if it hasn't been clicked? Also,
is there a way so that the form doesn't move with the
mouse? Basically, I want the form to appear in center and
don't be moved by dragging the mouse.

Please advise any info, really appreciated.

thanks,

Juan



  #3  
Old June 15th, 2004, 08:32 PM
JUAN
external usenet poster
 
Posts: n/a
Default Toggle buttons in form

Hello Van,
sorry for late reply.
I'm using 97 and I don't see a Moveable property on the
form. There's On Mouse move is there what you mean? Would
I need an Event procedure if so, what would the code be?
Please advise any info
thanks,

juan
-----Original Message-----
1. At the end of the Macro, set the value of the

OptionGroup to something
different than the 4 values of the 4 ToggleButtons.

2. Set the Moveable Property of the Form to False/No.

--
HTH
Van T. Dinh
MVP (Access)




"Juan" wrote in message
...
Hello,
have a form with a option group that contains 4 toggle
buttons. My question is, after i click the button to

run a
macro, the button stays as if its Clicked, is there a

way
to make the button show as if it hasn't been clicked?

Also,
is there a way so that the form doesn't move with the
mouse? Basically, I want the form to appear in center

and
don't be moved by dragging the mouse.

Please advise any info, really appreciated.

thanks,

Juan



.

  #4  
Old June 15th, 2004, 10:57 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Toggle buttons in form

MouseMove is a different Event. I can't remember exactly but I think
Moveable Property was introduced after A97.

Not sure if there is any other method to besides setting Border Style to
"None" which makes the Window Title hidden and therefore user cannot grab it
to move the Form.

--
HTH
Van T. Dinh
MVP (Access)




"JUAN" wrote in message
...
Hello Van,
sorry for late reply.
I'm using 97 and I don't see a Moveable property on the
form. There's On Mouse move is there what you mean? Would
I need an Event procedure if so, what would the code be?
Please advise any info
thanks,

juan



  #5  
Old June 16th, 2004, 12:45 AM
Juan
external usenet poster
 
Posts: n/a
Default Toggle buttons in form

Hello Van,
yeah, If I do the none border it does work but the form
doesn't look good. Unless I put a borger myself. Was using
the Dialog so was hoping to be able to not move the form
with mouse. Perhaps, on a later day I'll repost see if
anyone has anyother Ideas. You answered my other question
about the toggle, but what about if I'm not using a macro.
This is what I'm doing also:
Have toggle buttons. When I click on one it will open a
form, but the toggle buttons stays clicked, is there a way
that when I click and open the form for the toggle button
to show as Unclick?
I really do appreciate all your input;help you can provide,
thansk,
Juan
-----Original Message-----
MouseMove is a different Event. I can't remember exactly

but I think
Moveable Property was introduced after A97.

Not sure if there is any other method to besides setting

Border Style to
"None" which makes the Window Title hidden and therefore

user cannot grab it
to move the Form.

--
HTH
Van T. Dinh
MVP (Access)




"JUAN" wrote in message
...
Hello Van,
sorry for late reply.
I'm using 97 and I don't see a Moveable property on the
form. There's On Mouse move is there what you mean?

Would
I need an Event procedure if so, what would the code be?
Please advise any info
thanks,

juan



.

  #6  
Old June 16th, 2004, 03:06 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Toggle buttons in form

YOU referred to Macro in your original post???

Whether you use Macro or VBA in the OptionGroup_AfterUpdate Event, after
your existing code, set the value of the OptionGroup to Null or some value
that is different to the 4 values of the 4 Options. This way, none of the
Options will be shown as "pressed".

--
HTH
Van T. Dinh
MVP (Access)




"Juan" wrote in message
...
Hello Van,
yeah, If I do the none border it does work but the form
doesn't look good. Unless I put a borger myself. Was using
the Dialog so was hoping to be able to not move the form
with mouse. Perhaps, on a later day I'll repost see if
anyone has anyother Ideas. You answered my other question
about the toggle, but what about if I'm not using a macro.
This is what I'm doing also:
Have toggle buttons. When I click on one it will open a
form, but the toggle buttons stays clicked, is there a way
that when I click and open the form for the toggle button
to show as Unclick?
I really do appreciate all your input;help you can provide,
thansk,
Juan



 




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