Help a query... (1 Viewer)

smtazulislam

Member
Local time
Tomorrow, 01:44
Joined
Mar 27, 2020
Messages
806
Thanks for any help.

In the attached dB, I want to show .............
Table Employee is "Status = Active"
Table Transfer is "Status = Transfer"
Table Vacation is "Status = Back Vacation"


How to work it :
First checking Employee Table with Status is "Active" Then Transfer Table with tStatus is "Null Or Transfer" or "Current". ("Current" meaning he is work any company. And "Transfer" meaning he don't have work).
then need to confirm that he is return from Vacation or Not. (If he return from Vacation then vStatus will be "Back Vacation") .

Criteria Like : Status = "Active" And tStatus = "Null or Transfer" (Note: Latest Record) And vStatus ="Back Vacation" (Note: Latest Record)
Show how many employee Not Transfer yet : .................
 

Attachments

  • transfer.accdb
    1.2 MB · Views: 249

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:44
Joined
May 7, 2009
Messages
19,230
see Query1
 

Attachments

  • transfer.accdb
    1.3 MB · Views: 263

smtazulislam

Member
Local time
Tomorrow, 01:44
Joined
Mar 27, 2020
Messages
806
Thank you so much for your reply.
its display well. But need some criteria added.
Please see the attached picture i have explain there.
And I have attached more record in this dB.
View attachment 91866
 

Attachments

  • transfer.accdb
    664 KB · Views: 264
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:44
Joined
May 7, 2009
Messages
19,230
can you check Query1?
 

Attachments

  • transfer (1).accdb
    800 KB · Views: 255

smtazulislam

Member
Local time
Tomorrow, 01:44
Joined
Mar 27, 2020
Messages
806
Thank you so much,
Its work only if change anything with table Vacation,
But when I try to Transfer table any change then nothing update in the Query. Can you check it.

EDIT:/
If is it well work. I have to put my app. And it is Split with FE and BE. Query based on two Query is work in the BE file. Please give advice.
 

smtazulislam

Member
Local time
Tomorrow, 01:44
Joined
Mar 27, 2020
Messages
806
Thank you. I did it. Alhamdulillah.
Code:
Status: Switch([VacStart]>[TransferFrom] And IsNull([VacReturN]),"VacNoReturn",IsNull([TransferFrom]),"No Work",[TransferTo]>[TransferFrom],"No Work",[TransferFrom]>=Nz([VacReturn]),"Work",True,"No Work")
 

Users who are viewing this thread

Top Bottom