Results 1 to 5 of 5
  1. #1
    Join Date
    May 2013
    Posts
    6

    Different Values in Drop Down Menu and Data Table

    Hi all! I'm new to Access, and was hoping I could find some help here. Sorry if some of my terms aren't the correct ones; I'm still trying to figure everything out.

    I want to create a drop-down menu, with the selections "NA", "No", and "Yes". When these values are selected though, I want the data table to code these answers as numbers. Ex, if I selected "NA", I want the table to show the value "0". Is that possible/how can I do this?



    Thank you!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    You talk about a "Drop Down Menu" but I suspect you actually mean a "Combo Box". The attached db shows how you might use a combo box to save numeric values to a table after selecting a text value. Take a look at Form1, which is used to Add/Edit data in Table1.
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Join Date
    May 2013
    Posts
    6
    Yes, I meant a combo box, thanks.

    I tried to replicate what you did up there; however I think I'm still missing some things. I don't know where to define my values. In the Row Source for the combo box, I put in "0;NA;1;No;2;Yes", but then it shows up as 6 options in the combo box (as opposed to just NA, No, or Yes). I tried to copy your property sheet exactly, and also put in the code for the event procedure after the combo box updates. I must be missing some things but I'm not sure as to what. Do you have any idea what that may be, or is that too vague?

    By the way thank you very much for your speedy answer; I really appreciate your help!

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    take a look at the Column Count property of the combo box.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    Join Date
    May 2013
    Posts
    6
    Wow that was silly.
    Thank you, it works perfectly now!!

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

Similar Threads

  1. Replies: 2
    Last Post: 04-10-2013, 02:59 PM
  2. Drop Down Help Menu
    By dandoescode in forum Access
    Replies: 1
    Last Post: 08-07-2012, 02:51 AM
  3. Drop down menu help
    By whojstall11 in forum Access
    Replies: 6
    Last Post: 03-07-2012, 01:51 PM
  4. Replies: 3
    Last Post: 11-29-2011, 07:01 AM
  5. Choosing values of a field with drop-down menu.
    By kikonas in forum Database Design
    Replies: 4
    Last Post: 10-27-2011, 08:12 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