Good Morning
I will try to explain what i want.
I have a form that has the following fields:
Field1: Familiar: a dropdownlist with names
Field2: Valor apresentado : a currency field
Field3: Total apresentado ate a data: (A calculated field, currency)
In each record I'm placing an amount in field2 to a given name in field1.
In field3 (Total apresentado ate a data) i want the total amount of money given by "name"
I've written the following statment in "After update" of field2
Private Sub Valor_apresentado_AfterUpdate()
DoCmd.RunCommand acCmdRefresh
Dim nome As String
nome = Me.Familiar
Me.Total_comparticipado_até_ŕ_data = DSum("[Valor apresentado]", "[livros]", "[familiar] = " & nome)
I've tried several things but it didn't work
could you help please
Best Regards
manuel