Thanks for your reply JenniferLindsay!
The list employees contains the columns: Employeename, employeenumber. The list messages has the following columns: employeename, employeenumber, message.
I've 2 data connections. One for the list employees and one for the list messages. When i want to calculate the messages per employee, it says always one.
Is a repeating table the correct way to show al the employees? In the repeating table i have a dataconnection with the list employee. One column i coupled to the dataconnection of the list messages. In this column i want to show the number of messages. I changed the type to calculated field.The formule: count(employees) where the employee is the same as the record from the list employees.