Results 1 to 3 of 3
  1. #1
    Tuckejam is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Jan 2020
    Posts
    171

    Option Group Control using Row source data

    Trying to create an option group box that will will use data found in the row source properties the field rather than data from a linked table.
    Example


    My table (and form) is storing data about sober living homes
    House name, address etc and if its a Men's House, or a Women's house.
    I do not want to create a new table "House Type" with two records "Men's" "Women's".

    So I put the data in the row source property giving me a drop down for that field

    But when I create the Option group in the form, it makes me convert the data to numbers for entry to the table
    is there a way around this or do i have to create a table with data to use the option group control

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    put an Option frame on the form, THIS is what gets the value.
    in the frame are the 2 radio buttons.
    (and set the option values too; -1 for M, 0 for F) BUT it must be numeric.

    a query can convert M to =-1, F = 0
    then bind the Option Frame to the field and the options will change with the record.

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    See if this is what you are looking for:
    Click image for larger version. 

Name:	tucker.png 
Views:	8 
Size:	8.6 KB 
ID:	41504

    Here's the DB:

    Tuckdrjam-davegri-v01.accdb

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

Similar Threads

  1. Replies: 3
    Last Post: 04-27-2016, 01:25 PM
  2. Replies: 4
    Last Post: 10-03-2014, 06:36 AM
  3. Replies: 2
    Last Post: 09-17-2014, 09:35 AM
  4. Replies: 11
    Last Post: 01-25-2012, 09:46 AM
  5. Control Source Data Question
    By walt44 in forum Forms
    Replies: 3
    Last Post: 12-13-2011, 12:56 PM

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