Results 1 to 7 of 7
  1. #1
    RolandC is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    13

    Cascading combo boxes show correct data but stores ID number in table.

    I'm working with cascading combo boxes for vehicle data entry. On the form the combo boxes work correctly and display the correct information.
    However, it stores the corresponding ID number instead of the vehicle make. I have been searching for the answer for over a year now with no solution.


    I have attached a Sample DB. My main goal is to be able to print out a report from "vehicle data" that displays Make, Model and Trim correctly.
    Again, I've been working on this for over a year and have tried everything possible that I find or test. I appreciate any input that may work.
    Attached Files Attached Files

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I didn't download. No doubt you have the wrong combo column bound to the table. By ID I guess you mean that has something to do with the vehicle info and not the autonumber record ID? You would not want to try and insert that from a combo. Check which combo column is bound to the table and try another column instead. How many columns are in the combo (visible or not)?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Good thing I took a look. The way you have it is the way it should be. The pk of the parent table should be going into the child table as a foreign key (as you have it). That is, Make pk (4) is Buick. You store 4 in the vehicle table, not Buick. If you changed a field in the parent table (e.g. you noticed that you entered Biuck (sp) and had hundreds of records already, when you fixed the spelling you'd have to make sure all existing records got changed.
    I think you should review db normalization samples that show this, although one would think you already have since you're doing it properly.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    RolandC is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    13
    Thank you for the response. Didn't notice the misspelling which usually is the first thing to check when things aren't working out. That DB is just for testing purposes anyway, (so I don't break anything in the DB it will eventually reside in).
    I'm pretty sure that I've tried every column combination possible. Sometimes you end up trying so many different ideas that don't work you start to assume it will never work, or you're missing the obvious.
    I'll be trying more over the weekend at home. There is an answer out there somewhere.

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You've lost me. I don't see any issue. Maybe I'm missing something. Perhaps explain what you expect vs results.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    My main goal is to be able to print out a report from "vehicle data" that displays Make, Model and Trim correctly.
    You would need to join the tables in your reports recordsource like so:

    Click image for larger version. 

Name:	Screenshot 2024-07-12 225722.jpg 
Views:	20 
Size:	51.2 KB 
ID:	51971

    I made a few changes to your datatypes. See report 1
    Attached Files Attached Files
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  7. #7
    RolandC is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    13
    Thank you very much. That's exactly what I was looking for.

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

Similar Threads

  1. Cascading Combo Boxes in a TABLE (not a form)
    By timandlindsay in forum Access
    Replies: 2
    Last Post: 07-28-2021, 03:29 PM
  2. Cascading Combo Boxes Not Syncing With Data In Table
    By VSCurtis in forum Programming
    Replies: 14
    Last Post: 05-06-2017, 12:24 PM
  3. Replies: 7
    Last Post: 12-09-2014, 12:24 PM
  4. Replies: 4
    Last Post: 05-28-2012, 09:39 AM
  5. Replies: 11
    Last Post: 08-29-2011, 01:45 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