ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How do I write a formula on microsoft Access to calculate the salary for more than one period ?

how do I write a formula on microsoft Access to calculate the salary for more than one period ?

 

for Example if an Employee joined the company on theth of June so if I want to calculate the accrued salary from this day till-1- which is days, just for the record I know how to calculate it manually and on excel but I want to automate it in an Access Database.

thank you in advance 

user-image
تم إضافة السؤال من قبل Eslam mohammad mahmoud El Hendawy , Payroll Specialist , Hemaya Security Services L.L.C.
تاريخ النشر: 2017/03/03
MOHAMED MAHMOUD EISSA
من قبل MOHAMED MAHMOUD EISSA , Software department MGR. and Senior developer , Global Media Services GMS

There are many ways to do this task The main idea is to group the data by the required period

This is a simple query example that should put you on the right track:

SELECT Format([TransDate],"mmmm") + " " + Format([TransDate],"yyyy") AS [SalDate], Sum(Receivable)-sum(Deduction) AS net

FROM Sal

GROUP BY Format([TransDate],"mmmm")+" "+Format([TransDate],"yyyy");

Ziauddin Zia
من قبل Ziauddin Zia , Software Engineer , Asia Poultry Feeds (Pvt) Ltd

Hi, I am not using Microsoft Access.

But i think you should use "group by" query in access.

This link will help you regarding calculating on group:

http://www.gcflearnfree.org/access2007/using-queries-to-make-data-meaningful-part-2/3/

المزيد من الأسئلة المماثلة