Hello everyone!
Uhm i have a problem regarding this DLookup, and if i am able to solve this problem i am sure to unlock many possibilities in ms access.
Ok heres the problem:
I have this payroll system:View attachment JJAEPAYROLL.accdb
In the "qryEmployeeWTax" i need to Lookup the [InitialTax] from the "qryreftbl_WTAX" based from the [ETPES] and [SalaryAfterStatutoryDeductions], so i am using this function:
But it doesn't work:banghead:
Why? What's wrong?
I am able to use DLookup successfully using 2 criteria s in my "qryEmployeesStatutoryInfo"
Please help me
Uhm i have a problem regarding this DLookup, and if i am able to solve this problem i am sure to unlock many possibilities in ms access.
Ok heres the problem:
I have this payroll system:View attachment JJAEPAYROLL.accdb
In the "qryEmployeeWTax" i need to Lookup the [InitialTax] from the "qryreftbl_WTAX" based from the [ETPES] and [SalaryAfterStatutoryDeductions], so i am using this function:
Code:
InitialTax: DLookUp("[InitialTax]","qryreftbl_WTAX","[ETPES]=" & [ETPES] & "AND [ValueRangeStart]<=" & [SalaryAfterStatutoryDeductions] & "AND [ValueRangeEnd]<" & [SalaryAfterStatutoryDeductions])
But it doesn't work:banghead:
Why? What's wrong?
I am able to use DLookup successfully using 2 criteria s in my "qryEmployeesStatutoryInfo"
Please help me
