Results 1 to 3 of 3
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Using a two choice option on a table

    I am creating a two choice option in a form for an employee to either be a government employee or a contractor. This is like a Boolean except that
    the choices are gov or contr, not yes or no.

    I am unsure how to do that. When I go the controlling table, the choice it offers me is a yes or no (or in this case a checkbox), not two other mutually exclusive choices such as gov or contr.

    So going to the controlling table in design view how do I make to two choices sort of black and white, not yes and no?

    I could say something like gov label, and the option yes or no with the implication if they are not a government employee they must be a


    contractor. I just do not think that looks very good.

    How may I do the better job?

    Any help appreciated. Thanks in advance.

    Respectfully,


    Lou Reed

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Option Groups are form-related, nothing to do with tables. If you wish to store a value from a form in a table then add a column to that table. It can be any data type, text or whatever.

    Use the wizard to create the option group, set the values you want, and if it is bound to a column in a table then make sure that it matches (yes/no, text, etc).

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I'd use the option group aytee mentioned, bound to an Integer field (I think an option group can only have a numeric value, though I could be wrong). I'd also have a table to drive the choices with two fields, the numeric value (1,2) and the text value (Gov, Con). You can join that table to the main table to get the descriptions, and it makes it more dynamic if you need to add a third choice later.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Add right click menu choice to table
    By chromachem in forum Programming
    Replies: 7
    Last Post: 03-18-2016, 07:43 PM
  2. Replies: 5
    Last Post: 06-25-2014, 09:19 AM
  3. Replies: 7
    Last Post: 10-16-2012, 06:43 PM
  4. Replies: 6
    Last Post: 12-30-2011, 08:09 PM
  5. How do I put a multi-choice option on my form?
    By Dollydriver in forum Forms
    Replies: 13
    Last Post: 02-09-2011, 05:40 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