Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Mouse51180 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    15
    Quote Originally Posted by andy49 View Post
    What happens when you run that query without the where clause in sql design view. I presume you are getting some results?


    Sent from my iPhone using Tapatalk
    When I run the query, the output returns all Models and are sorted by Manufacturer. This is not the same order they appear in the table so I am guessing the query is working as expected.
    Click image for larger version. 

Name:	2017-03-27 13_54_17-Access - TAMS _ Database- M__Software_Trutegra_TAMS_TAMS.accdb (Access 2007 .png 
Views:	9 
Size:	19.1 KB 
ID:	28014

  2. #17
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Ok. Just to check what about adding

    Msgbox me.cbomanufacturer


    After the requery.
    Just to confirm it's returning a value


    Sent from my iPhone using Tapatalk

  3. #18
    Mouse51180 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    15
    Quote Originally Posted by andy49 View Post
    Ok. Just to check what about adding

    Msgbox me.cbomanufacturer


    After the requery.
    Just to confirm it's returning a value


    Sent from my iPhone using Tapatalk
    After adding the message box...when I select different manufacturers the message box pops up with the key id number of said manufacturer.

  4. #19
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051

    Combo box selection fills in list box

    Aha. The combo is returningbthe wrong value
    Change bound column?

    Or change where clause to be fk_manufacturer?

    Sent from my iPhone using Tapatalk

  5. #20
    Mouse51180 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    15
    Quote Originally Posted by andy49 View Post
    Aha. The combo is returningbthe wrong value
    Change bound column?

    Or change where clause to be fk_manufacturer?

    Sent from my iPhone using Tapatalk
    GOOD NEWS
    Changed the code in the row source from
    Code:
    SELECT [qryName].[ModelID], [qryName].[Model] FROM qryName WHERE [Manufacturer]=Forms!frmModel!cboManufacturer ORDER BY [Model];
    to
    Code:
    SELECT [qryName].[ModelID], [qryName].[Model] FROM qryName WHERE [Manufacturer_FK]=Forms!frmModel!cboManufacturer ORDER BY [Model];
    and it looks to be working now.

    Got a new tool with the message box to diagnose issues like this in the future as well.

    Thank you so much.

  6. #21
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    No probs. Good luck in your project


    Sent from my iPhone using Tapatalk

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Selection from Combo Box to populate list
    By Cupragsw in forum Forms
    Replies: 3
    Last Post: 04-13-2015, 10:49 AM
  2. Multiple Selection wth List Box / Combo Box
    By rkalapura in forum Forms
    Replies: 11
    Last Post: 02-09-2013, 11:02 PM
  3. Replies: 1
    Last Post: 03-27-2012, 07:10 AM
  4. Filter List box from combo box selection
    By thart21 in forum Forms
    Replies: 3
    Last Post: 11-09-2011, 12:00 PM
  5. Checking List Box Value with Combo box selection
    By empyrean in forum Programming
    Replies: 1
    Last Post: 10-23-2009, 06:01 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