Hello Everyone,
I'm having abit of difficulty with an aspect of Access. I wish to create a query which changes a persons wage depending upon their age. This is what I have done so far:
Now, I have the feeling that this doesn't work due to the fact that I utilise the [Normal_Wage] variable twice. However, I am unsure as to how to avoild this.
Any help or suggestions would be greatly appreciated. I need to get this done ASAP.
Thanks,
Edward Gorman
I'm having abit of difficulty with an aspect of Access. I wish to create a query which changes a persons wage depending upon their age. This is what I have done so far:
Code:
SELECT Tble_Staff.[Unique Staff Number], Tble_Staff.[Age], Tble_Staff.[Age] AS Normal_Wage FROM Tble_Staff WHERE IIF([Normal_Wage]=12,13,IIF([Normal_Wage]=13,13.34,IIF([Normal_Wage]=14,13.78,IIF([Normal_Wage]=15,14,IIF([Normal_Wage]=16,14.50,IIF([Normal_Wage]=17,14.70,IIF([Normal_Wage]>=18,15.60,"Invalid Number")))))));
Any help or suggestions would be greatly appreciated. I need to get this done ASAP.
Thanks,
Edward Gorman
Comment