Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2011
    Posts
    5

    Hve text combo box values but store integers in field

    Hi,



    I am required to store integer values in the fields of the table i am using. However, these will not mean anything to the user inputting the data so I want to use a combo box that will present the user with No, Yes, Unknown but will save 0,-1,99 to the field. Is this possible?

    Thanks in advance for your help

    accesshelpasker

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sure; the typical setup would be a table containing two fields, one for the numeric value and one for the text value. The combo box wizard would guide you through adding a combo to a form based on that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Oct 2011
    Posts
    5

    Smile

    Oh now I see you would need to create a look up table and use that.

    Thanks a lot Paul for your quick repsonse

    Cheers

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem accesshelpasker, happy to help. You don't need to, but that's the typical setup. It's more flexible than hard-coding the options. Welcome to the site by the way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Join Date
    Oct 2011
    Posts
    5
    Ive now got this working by hard coding the options rather than a look up table. It now appears to display text in what is a numeric field, I've checked its working by filtering the column using 0,-1,99 and it works. Thanks for that.

    I now need to know how I am now able to view this data in its raw numeric form so this data can be exported in the required format.

    cheers

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you're storing the numeric value, you should just be able to export the table. You didn't use a lookup field, did you?

    http://access.mvps.org/access/lookupfields.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Join Date
    Oct 2011
    Posts
    5
    No, I didn't use a look up table, just typed them in manually using lookup wizard

    Cheers

  8. #8
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm aware you didn't do what I suggested. I asked about lookup fields. What happens if you export the table? Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    Join Date
    Oct 2011
    Posts
    5
    I exported the field to excel and it works!!

    thanks for your help once again

  10. #10
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help.
    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. Combo Box - Field List Values
    By jennyaccord in forum Forms
    Replies: 5
    Last Post: 07-29-2011, 01:49 PM
  2. Replies: 10
    Last Post: 07-02-2011, 11:51 AM
  3. Two colunms in combo, only store one?
    By Bike in forum Queries
    Replies: 3
    Last Post: 03-30-2011, 10:38 PM
  4. Replies: 1
    Last Post: 01-21-2010, 02:36 AM
  5. How do I get dlookup values to store in table
    By rpmyhero in forum Access
    Replies: 1
    Last Post: 11-25-2009, 05:57 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