Results 1 to 4 of 4
  1. #1
    Aztecfan63 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2020
    Location
    Chula Vista, CA
    Posts
    5

    Combo box returns a number

    My combo box seems to return the correct text from the specific table used for that combo box in my form. BUT the query
    receives a number? what am I doing wrong?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Depends on what your combo contains?
    I tend to have the bound column as my first column, which is always hidden, the the descriptive column as my 2nd and any other columns after that.
    However the key that everything is linked by is the first column, usually an autonumbet.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That's how multi-column combobox should work - assuming you are using autonumber field as primary key and saving that value to dependent table as foreign key.

    Where are you using this query - form or report?

    Advise not to build lookup fields in tables.
    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.

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    In your query you would include the table that contains the values for your Form Combobox and
    you then add the field from the table and not the ID number from the related table.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Replies: 2
    Last Post: 01-06-2021, 10:58 AM
  2. Replies: 16
    Last Post: 02-22-2018, 03:34 AM
  3. Combobox returns multiple fields but not the ID number
    By pattrickcolin in forum Queries
    Replies: 5
    Last Post: 06-03-2014, 12:37 PM
  4. Replies: 3
    Last Post: 08-24-2010, 07:40 PM
  5. Replies: 3
    Last Post: 02-20-2009, 02:28 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