Results 1 to 5 of 5
  1. #1
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26

    How to use option button to store value into table

    Hi,



    I want to make option button in access to allow user choose status like: Single, Married and Widower

    Single
    Married
    Widower

    When user choose the value must save into table. How to do this? Pls help

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why do you need code for this? Why not use a form bound to table and a combobox bound to field? This is basic Access functionality. Data entry on form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26
    I don't want to use combobox. I want to use option box. pls help

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    By option box do you mean an option group with 3 radio buttons?

    An option group control can be bound to field. The option group values must be numeric. This means number 1, 2, 3 (representing Single, Married, Widower) can be saved directly to record. If you want to save text descriptor that will require macro or VBA.

    So combobox is the easier method for saving text value.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    dododo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jun 2011
    Posts
    26
    That's fine. Thanks. I will use combo box instead.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Option Button If-Then statements
    By dccjr in forum Programming
    Replies: 5
    Last Post: 01-07-2013, 08:06 PM
  2. set option button to true
    By crowegreg in forum Forms
    Replies: 2
    Last Post: 06-29-2012, 11:36 AM
  3. Replies: 1
    Last Post: 04-25-2012, 12:36 PM
  4. Replies: 6
    Last Post: 07-20-2011, 11:54 AM
  5. Option Button with Negated Value
    By rohnds in forum Forms
    Replies: 3
    Last Post: 08-09-2010, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums