SELECT {Invoice}.[Id], {Verwijsbrief}.[Disicpline] + ' - ' + {Kind}.[Voornaam] + ' ' + {Kind}.[TussenvoegselKind] + ' ' + {Kind}.[Achternaam] + ' maand: ' + convert (varchar, {Invoice}.[Maand]) + ' - ' + convert (varchar, {Invoice}.[Jaar]) FROM {Invoice} INNER JOIN {Verwijsbrief} ON {Verwijsbrief}.[Id] = {Invoice}.[Id] INNER JOIN {Kind} ON {Kind}.[Id] = {Verwijsbrief}.[Id] ORDER BY {Kind}.[Voornaam] Another QUESTION for the combobox: I would like to see in the combobox (in {invoiceline}.edit only the therapost (Physical therapey, Speech therapy or Occupational therapy) that has been connected to the {invoice} by {Verwijsbrief}. The logic is that {invoiceline} has a relationship with {invoice} {invoice} has a relationhip with {verwijsbrief} and in each record of {verwijsbrief} it is indicated which therapist is selected {verwijsbrief} has a relationship with [therapeut -> the table that contains all the therapists}. For that I've used the following SQL statement, but I get no results. Can anyone help me out/ point me in the right direction?
SELECT {Therapeut}.[Id], {Therapeut}.[Voornaam] + ' ' + {Therapeut}.[Tussenvoegsel] + ' ' + {Therapeut}.[Achternaam] + ' - ' + {Therapeut}.[Discipline] FROM {Therapeut}, {Verwijsbrief} WHERE {Therapeut}.[TherapeutActief] = 'Yes' AND {Therapeut}.[Discipline] = {Verwijsbrief}.[Disicpline]