473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Option Button Problem


Hello everyone,

I have a form with an option button on it. I am having problems to set
the value of this to is previous state/selection.

For instance if someone navigates from the main menu to the specific
form and selects an option and the back to the main menu. If they go
back to the form i want the previous option to be selected.

Any ideas please. Thanks in advance for your help.

Nov 12 '05 #1
3 1567
Andy K wrote:

Hello everyone,

I have a form with an option button on it. I am having problems to set
the value of this to is previous state/selection.

For instance if someone navigates from the main menu to the specific
form and selects an option and the back to the main menu. If they go
back to the form i want the previous option to be selected.

Any ideas please. Thanks in advance for your help.

If I understand your situation...not sure what an option is and what
value of an option to save...you could create a field on your main form
to store a value. When an "option" is selected, it checks to see if the
main form is open and if it is, sets a value to that field in the main form.

Sub Option_AfterUpdate()
If IsOpen("MainForm") then 'see Syscmd to create IsOpen function
Forms!MainForm!OptionField = "Whatever"
Endif

Then, when you open the form from the mainform, you can check the value.
Ex:
If IsNull(Me.OptionField) Then
Docmd.openform "Test"
Else
Docmd.Openform "Test",,,"ID = " & Me.OptionField
Endif

Nov 12 '05 #2
If you bind the option button to a field in the record source of your form, then
the option button will always have the value you previously selected.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Andy K" <a.********@londonmet.ac.uk> wrote in message
news:c6**********@canard.ulcc.ac.uk...

Hello everyone,

I have a form with an option button on it. I am having problems to set
the value of this to is previous state/selection.

For instance if someone navigates from the main menu to the specific
form and selects an option and the back to the main menu. If they go
back to the form i want the previous option to be selected.

Any ideas please. Thanks in advance for your help.

Nov 12 '05 #3
I haven't tested this but.....
What if you change the default value of the option control in its
After-Update event?
Fred Zuckerman
San Diego, CA, USA
"Andy K" <a.********@londonmet.ac.uk> wrote in message
news:c6**********@canard.ulcc.ac.uk...

Hello everyone,

I have a form with an option button on it. I am having problems to set
the value of this to is previous state/selection.

For instance if someone navigates from the main menu to the specific
form and selects an option and the back to the main menu. If they go
back to the form i want the previous option to be selected.

Any ideas please. Thanks in advance for your help.

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Edward | last post by:
I have a data entry form that allows the user to navigate around entirely using the keyboard. However, it contains various option button controls which are in the tab order. Whenever they are...
6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
3
by: Andy K | last post by:
Hello everyone, I have a form with an option button on it. I am having problems to set the value of this to is previous state/selection. For instance if someone navigates from the main menu to...
1
by: Mark | last post by:
Hi All, Is there anyway I can select an option button by clicking a command button? From what I have found out so far, unlike a check box, and option button has no value so I can't assign it one....
11
by: MLH | last post by:
Why is that? If I choose the tiny check boxes which are hard to hit with a mouse, it works fine. But option buttions, shich can be sized big enough for people with limited sight and dexterity...
1
by: Stephen D Cook | last post by:
In my form I have an option group with 3 option buttons. My form is tied to a table. the options are Temp, Permanent and Overtime. I have these inside a frame. I have an AddRecord button to enter...
1
by: sparksol | last post by:
I have a form with a drop down box. If you select an option in the drop down box (depending which option is selected) one or two textbox(es) and a submit button display. I would like to keep the...
2
by: sara | last post by:
Hi I'm having a very strange problem and need HELP!! I have a form for the user to choose a report (radio button in an option group) and parameters (Dates, Season). Click the option button,...
1
by: grego9 | last post by:
I have two option buttons - Diplayed as Option Button 76 and Option Button 77 in the name box on a tab called "AMEND" . When Option button 76 is slected I want a drop down box called Drop Down 43...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.