This is related to previous post (https://www.accessforums.net/queries...tml#post271501) but am trying a new tack so posted new question.
I have a form called called Products
I have a combo box called cboOrganization on this form. It is a list of distinct organizations in the table Orders.
I also have a combo box called cboFullName. I want the record source to be all the distinct names that are associated with the organization selected on the cboOrganization. Distinct names is determined by the latest entry in the database. Since there is an autonumber field (ID) the last value can be used as a filter.
The problem I am having is grabbing the the associated contact data with this single record and filling in the other other text boxes below cboFullName with these values.
Based on attached database, if the user selects Organization XYZ, there should only be 3 names associated with it the returned query results for cboFullName's record source: John Wayne, Gerri Smith, and Liz Jones. The information associated with these names should be as follows (as these are their last entries while working for company XYZ)
John Wayne, Kalamazoo, MI, Asso. Manager
Gerri Smith, Kalamazoo, MI,Manager
Liz Jones,Chicago,IL,Sales
I am getting all unique instances of these names and their associated contacts instead of the last instance only. How can I filter out the previous entries for those records matching fullname for company XYZ?
Earlier records that show up but I don't want to might look like this:
John Wayne, Kalamazoo, MI,Sales
Gerri Smith, Detroit, MI, Sales
Gerri Smith, Kalamazoo, MI, Asst. Manager