-
Obter num formulário a soma de valores em tabelas
Gostaria que me ajudassem na seguinte situação:
Tenho 1 tabela de veículos (Veículo XXX, YYY e ZZZ) e outra tabela de despesas em que cada veículo pode ter mais que uma despesa.
Gostaria que o valor das despesas tanto na Tabela Veículos como no Formulário Veículos fosse obtido automaticamente da Tabela de Despesas.
Criei um evento mas julgo que estará errado.
Obrigado.
-
You will get more response if you can post the question in English.
-
Get in a Form a sum of the values tables
What I would like to help me in following situation:
I have a table "VEÍCULOS" (Vehicle XXX, YYY and ZZZ) and another table DESPESAS (costs) them every vehicle can have more than a expense.
I want then the amount of expenses is obtained automatically in the table vehicles and in the vehicles Form.
I created a event but I think that is wrong.
Thank you.
-
Try this as the control source of the textbox on the form:
=DSum("despesa","despesas","placa = '" & [placa] & "'")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules