Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    26

    Combox Box Outputs the ID in text

    I have a table that containts a foreing key with many companies. Of course, to maintain referential integrity, I used the ID. Unfortunately, that makes it difficult for the user, considering there are a thousand keys for all the comapnies.

    So I used a combo box to select the right company, which works perfectly, you see the number and the name, and then you can select the one you want, and it only puts the number. I jumped in joy, until it told me that the fields didnt match, and that i was trying to insert text in a number field (which is false, because it was a number). The source was a Autonumber, and the FK was a number. Why in the world is access telling me im outputting text... WHYYYYYYY.. ???

  2. #2
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    What is the bound column of the combo box?

    If the row source of the combo box looks like the following, the bound column should be 1:

    SELECT IDfield, textfield1, textfield2 etc.
    FROM yourtable

  3. #3
    Join Date
    Jul 2010
    Posts
    26

    Thanks!!!!!!!

    Wow so much wasted time for such a little problem. THANKS!

  4. #4
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome. Sometimes it is the little things that get us!

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

Similar Threads

  1. How to vertically align text inside a text box ?
    By alexcalgary in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 08:44 AM
  2. Replies: 1
    Last Post: 04-07-2010, 08:49 AM
  3. Combox not filling the rest of the form
    By britt britt in forum Forms
    Replies: 2
    Last Post: 10-27-2009, 04:55 AM
  4. Replies: 3
    Last Post: 02-20-2009, 02:28 PM
  5. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 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