Solved

MS Access How to update a radio button status with field name?

Posted on 2013-01-28
3
536 Views
Last Modified: 2013-01-30
I have a radio button that controls a field - press the button, field changes to "cancelled".

When I re-open this form, the field says cancelled, but the radio button isn't turned on.

How can I auto turn on the radio button if the field is already set to cancelled?
0
Comment
Question by:DJPr0
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
nickinthooz earned 500 total points
ID: 38828340
If field.text = "cancelled" then
option.value= 1

In an option group, you check the value of the Option group control (MS
autonames this Frame if you don't assign a name). This will get the value
associated with checked item in the option group. If you want to force the
item to be checked you set the Option Group's value to one of the check box
control's option value.

If Me.YourFrame.Value = 1 Then
        MsgBox "Option 1 is selected"
    ElseIf Me.YourFrame.Value = 2 Then
        MsgBox "Option 2 is selected"
    End If

Open in new window


maybe that'll help.
0
 

Author Comment

by:DJPr0
ID: 38828356
Where do I input this code? Form - Load?
0
 
LVL 6

Assisted Solution

by:nickinthooz
nickinthooz earned 500 total points
ID: 38828426
I would guess, if you want the form to check it on load then yes.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now