Results 1 to 9 of 9
  1. #1
    supracharger is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2012
    Posts
    13

    Combo Box NOT saving correct value

    I created a Combo Box that takes values from a table (EX. Linda, Hannah) and stores values in "Client Name". But instead of storing values(Linda, Hannah) in "Client Name" it stores Value (1, 2).

    How do I get the combo box to store values (Linda, Hannah) and NOT (1,2)?


    I tried Relating the tables from "ID" to "Clients Name" and rigging it to associate (Linda, Hannah) to (1, 2), but it didn't want to associate a "AutoNumber/ ID" to a "Text/ Clients Name". And gave me a Error Message, "Type Mismatch in Expression".

    Thanx,
    A.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  3. #3
    supracharger is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2012
    Posts
    13
    If someone would help me out I would be Very thankful.
    A>

  4. #4
    supracharger is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2012
    Posts
    13
    I Tried Rigging it again, and Creating a Query having (columns): ID, Client Name (Linda, Hannah), Client #:=[ID]+0. So every table would relate to this query using Client Name, and Client #, but it still gives me a Error message: "Type Mismatch in Expression".
    Any help would be Greatly helpful,
    A.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  6. #6
    supracharger is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2012
    Posts
    13
    I got it; I don't think you would be able to figure that out in a tutorial.
    A.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Well then, would you like to post a message telling others, who may have the same issue you faced, exactly how you solved it?
    Others have had difficulty with combo boxes and still more will in future, so a brief description showing your solution would be very helpful.

  8. #8
    supracharger is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2012
    Posts
    13
    How I fixed it: Since it was storing the wrong value [ID], instead of the value that I selected [Client] in the combo box. I went in the properties/ Data and Found Bound column (I think) and it said 1. Under it I found it was making a SQL server, Columns: [ID], and [Client]. So what it was doing is showing [Client] 2nd column(2), and saving value [ID] 1st column (1).
    FIX: So I had [Client] in Column 1, and also [Client] in Column 2, and moved [ID] to Column 3. And Now in the Combo box it shows [Client] and now saves value [Client].

    A.

  9. #9
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    And I'll bet you didn't know that the ID field was part of the Combobox, did you? If you generate a Combobox using the Wizard, and base it on one or more Fields of a Table, and that Table has an Autonumber/Primary Key Field, Access will automatically include the PK Field in the RowSource of the Combobox, even though you did not ask it to, and will make it the Bound Column, too boot!

    Glad you got it working!

    Linq ;0)>

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

Similar Threads

  1. Combo Box not showing the correct Field
    By Atlascycle in forum Reports
    Replies: 61
    Last Post: 03-12-2012, 10:51 AM
  2. Replies: 9
    Last Post: 06-26-2011, 09:14 PM
  3. Combo Box not saving to table
    By dgriffin in forum Forms
    Replies: 11
    Last Post: 06-08-2011, 03:04 PM
  4. Replies: 3
    Last Post: 05-25-2010, 02:16 PM
  5. Combo Box isnt saving
    By calisen in forum Access
    Replies: 0
    Last Post: 09-11-2008, 03:34 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