I'm trying to find out which partners has not paid the monthly tuition in a particular month
I have a table called Socios
contaning all partners names SocioNome
and another table called RegistroPagamento
contaning all payments done (This particular table is fullfiled by a form where the user input the Partner Name, Amount Paid and which particular month/year the payment is related to)
I have created a query where I used the SQL Code below
SELECT [SocioNome]
FROM [Socios] NOT IN
(SELECT [SocioNome] FROM [RegistroPagamento] WHERE [MesBoleto] = [Forms]![Selecionar_MCobranca]![TBoxMes] AND [AnoBoleto] = [Forms]![Selecionar_MCobranca]![TBoxAno]);
[Selecionar_MCobranca]
is the form I have mentioned before and the [TBoxMes]
& [TBoxAno]
are the combo boxes from the form which the user can select the month and the year the payment reffers to.
When I run the code, a error message pops up indicating that there is a FORM clause syntax issue, and I dont know exactly what is causing the problem
Any help is highly appreciated