bumfuzzled
Programmer
Hello all,
I have an invoice table and a "Time" table. In the time table there is a mileage charge field, and a hours charge field, I am trying to add those together and total for each invoice in the Invoice field and update a field in the Invoice table with that Information. I realize that this is a calculated field, but it is neccesary for something else that I am working on. So, here is what I have for my DSum expression in an update query
Mileage Charge and Hours Charge are both currency fields, and invoiceID and Invoice are text fields
Thank you in advance, I have tried every which way,but it won't proccess the criteria it just adds the whole table
I have an invoice table and a "Time" table. In the time table there is a mileage charge field, and a hours charge field, I am trying to add those together and total for each invoice in the Invoice field and update a field in the Invoice table with that Information. I realize that this is a calculated field, but it is neccesary for something else that I am working on. So, here is what I have for my DSum expression in an update query
Code:
DSum("MileageCharge","Time","'InvoiceID='" & [Invoice])
+DSum("HoursCharge","Time","'InvoiceID='" & [Invoice])
Thank you in advance, I have tried every which way,but it won't proccess the criteria it just adds the whole table