Saving Option Button Caption

Posted on 2006-04-09
Last Modified: 2011-09-20
I Placed a frame (caption  as Priority) on the form, in that frame i placed Option Button control array,
Option1(0) caption is Urgent
Option1(1) caption is Study
Option1(2) caption is Information
I am storing values in database,How can i save its captions
For i = Option1.LBound To Option1.UBound
        If Option1(i).Value = True Then
        rs("Priority") = i
         Exit For
        End If

Priority is the column name of database
right now i am storing the values, How can i save its caption,please let me know
Question by:devdept
    LVL 48

    Accepted Solution


    rs("Priority") = Option1(i).Caption
    LVL 48

    Expert Comment

    by:Ryan Chong
    Any reason why you award me a "C" here? I think I fairly can get an "A" here!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    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

    11 Experts available now in Live!

    Get 1:1 Help Now