جرب هذا
SELECT ExpenseName_T.ExpID, ExpenseName_T.ExpenseName, IIf(Nz(DLookUp("[Stype]","Sand_T","[ExpenseID]=" & [SnID] & "")),Nz(DLookUp("[Stype]","Sand_T","[ExpenseID]=" & [SnID] & "")),IIf(Nz(DLookUp("[Stype]","Sand_T","[OwnerID]=" & [SnID] & "")),Nz(DLookUp("[Stype]","Sand_T","[OwnerID]=" & [SnID] & "")),IIf(Nz(DLookUp("[Stype]","Sand_T","[EmployeeID]=" & [SnID] & "")),Nz(DLookUp("[Stype]","Sand_T","[EmployeeID]=" & [SnID] & "")),IIf(Nz(DLookUp("[Stype]","Sand_T","[CustomersID]=" & [SnID] & "")),Nz(DLookUp("[Stype]","Sand_T","[CustomersID]=" & [SnID] & "")),IIf(Nz(DLookUp("[Stype]","Sand_T","[SnID]=" & [SnID] & "")),Nz(DLookUp("[Stype]","Sand_T","[SnID]=" & [SnID] & "")),[ExpenseType]))))) AS ExpenseType2, Nz(DSum("[Amount]","Sand_T"),"0") AS SumAmount, IIf(Nz(DSum("[Amount]","Sand_T","[ExpenseID]=" & [ExpID] & "")),Nz(DSum("[Amount]","Sand_T","[ExpenseID]=" & [ExpID] & "")),IIf(Nz(DSum("[Amount]","Sand_T","[OwnerID]=" & [ExpID] & "")),Nz(DSum("[Amount]","Sand_T","[OwnerID]=" & [ExpID] & "")),IIf(Nz(DSum("[Amount]","Sand_T","[EmployeeID]=" & [ExpID] & "")),Nz(DSum("[Amount]","Sand_T","[EmployeeID]=" & [ExpID] & "")),IIf(Nz(DSum("[Amount]","Sand_T","[CustomersID]=" & [ExpID] & "")),Nz(DSum("[Amount]","Sand_T","[CustomersID]=" & [ExpID] & "")),IIf(Nz(DSum("[Amount]","Sand_T","[SuppliersID]=" & [ExpID] & "")),Nz(DSum("[Amount]","Sand_T","[SuppliersID]=" & [ExpID] & "")),"0"))))) AS Amount2
FROM Sand_T, ExpenseTybe_T INNER JOIN ExpenseName_T ON ExpenseTybe_T.Id = ExpenseName_T.ExpenseTybeID;