hai provato una cosa tipo:
costodefinitivolavorazione = ore_di_lavorazione * Dlookup(costo_orario;LAVORAZIONI;ID=ID_lavorazioni )