I have a table with multiple records and I need to sum the Total Amount [CostoTotal] when the type of record [TipoMovimiento] is one field in my form and the Code of the product is another filed in my form.
This is an inventory table and my code is below
Private Sub Command0_Click( )
Dim Test As Currency
Test = DSum("[CostoTotal]", "tblInventarioM ovimientos", "[TipoMovimiento] <> [Text2] AND [Codigo] = " & [Text1])
End Sub
This is an inventory table and my code is below
Private Sub Command0_Click( )
Dim Test As Currency
Test = DSum("[CostoTotal]", "tblInventarioM ovimientos", "[TipoMovimiento] <> [Text2] AND [Codigo] = " & [Text1])
End Sub
Comment