that total I guess you sum with ID or CODE for each object, right ?
then image now you need to see where those total from, the invoice.
now, you need a combobox/listbox on top, on left or anywhere you need. (let call this ABC)
set row source to query that SELECT that ID/code and invoice's charges as field FROM table invoice.
Next, give the field ID/code this criteria Forms!nameofform!nameofID/codecontrol/box (/ mean or, id/code - id or code - explain, not the code's format)
point to the total box/field, on event, find the onclick event, give it this code vba
-
private sub box/field_click
-
me.ABC.requery
-
end sub
-
when you choose the ID or Code to see the total, detail about each charges on invoice will show in new listbox/combobox you have created.