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 uncheck option group?



 
 
Thread Tools Display Modes
  #1  
Old April 7th, 2007, 02:36 PM posted to microsoft.public.access.forms
dlazenby
external usenet poster
 
Posts: 44
Default how do I uncheck option group?

I have a form with some option groups. The default choice is set to no
choice, so it does start out blank.
My question, once you "invoke" that option group you always have to have one
of them selected. Is it possible to reset it to blank/no choices and how?
Please advise.
  #2  
Old April 7th, 2007, 02:42 PM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default how do I uncheck option group?

dlazenby wrote:
I have a form with some option groups. The default choice is set to no
choice, so it does start out blank.
My question, once you "invoke" that option group you always have to
have one of them selected. Is it possible to reset it to blank/no
choices and how? Please advise.


You need code to reset the value to Null. A clear button next to the
OptionGroup for example.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old April 7th, 2007, 03:10 PM posted to microsoft.public.access.forms
dlazenby
external usenet poster
 
Posts: 44
Default how do I uncheck option group?

Rick,
Thanks for your reply. I put a button on the form and I used the command
button wizard for Form Operations but there were no relevant commands. I also
tried to do it with a macro, by looking for a relevant command there. As you
might surmise, I am not very code knowledgeable.
Could you elaborate (specific steps) on your suggestion?

"Rick Brandt" wrote:

dlazenby wrote:
I have a form with some option groups. The default choice is set to no
choice, so it does start out blank.
My question, once you "invoke" that option group you always have to
have one of them selected. Is it possible to reset it to blank/no
choices and how? Please advise.


You need code to reset the value to Null. A clear button next to the
OptionGroup for example.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



  #4  
Old April 7th, 2007, 03:17 PM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default how do I uncheck option group?

dlazenby wrote:
Rick,
Thanks for your reply. I put a button on the form and I used the
command button wizard for Form Operations but there were no relevant
commands. I also tried to do it with a macro, by looking for a
relevant command there. As you might surmise, I am not very code
knowledgeable.
Could you elaborate (specific steps) on your suggestion?


Me!OptionGroupFrameName = Null

(or)

Me!FieldName = Null

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #5  
Old April 7th, 2007, 04:00 PM posted to microsoft.public.access.forms
dlazenby
external usenet poster
 
Posts: 44
Default how do I uncheck option group?

Rick,
Thanks for your reply and patience. We're almost there.
Regarding the Me!OptionGroupFrameName = Null suggestion, what I tried to do
(unsuccessfully), was create a button (without the wizard), and then in the
On Click
section of the button properties insert that code in the expression builder.
I substituted Frame8 for the option group frame name as that is the name of
that particular option group frame. So now to the right of the On Click
property it reads: [Me!Frame8 = Null]. When I open the form and click the
button, I get the error message, "Microsoft Access can't find the object
'[Me!Frame8=Null].' If '[Me!Frame8 = Null]' is a new macro or macro group,
make sure you have save it and typed its name correctly."
Please advise.
"Rick Brandt" wrote:

dlazenby wrote:
Rick,
Thanks for your reply. I put a button on the form and I used the
command button wizard for Form Operations but there were no relevant
commands. I also tried to do it with a macro, by looking for a
relevant command there. As you might surmise, I am not very code
knowledgeable.
Could you elaborate (specific steps) on your suggestion?


Me!OptionGroupFrameName = Null

(or)

Me!FieldName = Null

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



  #6  
Old April 7th, 2007, 04:04 PM posted to microsoft.public.access.forms
dlazenby
external usenet poster
 
Posts: 44
Default how do I uncheck option group?

Rick,
I was able to figure it out (doh!). I inserted your code in the VBA section
instead of the expression builder and it worked. Thanks again.

"dlazenby" wrote:

Rick,
Thanks for your reply and patience. We're almost there.
Regarding the Me!OptionGroupFrameName = Null suggestion, what I tried to do
(unsuccessfully), was create a button (without the wizard), and then in the
On Click
section of the button properties insert that code in the expression builder.
I substituted Frame8 for the option group frame name as that is the name of
that particular option group frame. So now to the right of the On Click
property it reads: [Me!Frame8 = Null]. When I open the form and click the
button, I get the error message, "Microsoft Access can't find the object
'[Me!Frame8=Null].' If '[Me!Frame8 = Null]' is a new macro or macro group,
make sure you have save it and typed its name correctly."
Please advise.
"Rick Brandt" wrote:

dlazenby wrote:
Rick,
Thanks for your reply. I put a button on the form and I used the
command button wizard for Form Operations but there were no relevant
commands. I also tried to do it with a macro, by looking for a
relevant command there. As you might surmise, I am not very code
knowledgeable.
Could you elaborate (specific steps) on your suggestion?


Me!OptionGroupFrameName = Null

(or)

Me!FieldName = Null

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot 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 09:40 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.