jw191
05-19-2008, 08:00 AM
Hi Guys,
New to Access so please be gentle. I started a dummy project to teach myself (using Dummies Guide) but threw myself in at the deepend so I think what I'm trying to do is beyond basic!
Right, I have several tables but the main one of interests is called "TblListEmployees". This has a lot of info in it but the main field of interest is "Source_PNel_#" which is the employee unique ID.
I have several other tables in which people are assigned work, on leave etc.
I have two queries which calculate from some of the other tables:
1) "QryAbsent" - this looks at each entry in a table which records employees leave start and end dates. Where the planned absence is current (i.e. today's date falls in the range of leave) it puts the employees unique ID (PNel_#) into a field called "Absent" - this all works fine.
2) "QryOn Assign" - this looks at each entry in a table which records assigned work. Where the assigned work is current (i.e. today's date falls in the range of assignment) it puts the employees unique ID (PNel_#) into a field called "Assigned" - this also works fine.
Now the challenge.
I want to create another query, called, lets say "AvailForWork". This should list all employees in the "TblListEmployees" table, except where their personnel numbers appear in [QryOnAssign]![Assigned] or [QryAbsent]![Absent]
I've spent most of today fiddling, fruitlessly scouring the web and I'm loosing the will to live! Any help or pointer would really be appreciated.
Thanks,
JW191.
New to Access so please be gentle. I started a dummy project to teach myself (using Dummies Guide) but threw myself in at the deepend so I think what I'm trying to do is beyond basic!
Right, I have several tables but the main one of interests is called "TblListEmployees". This has a lot of info in it but the main field of interest is "Source_PNel_#" which is the employee unique ID.
I have several other tables in which people are assigned work, on leave etc.
I have two queries which calculate from some of the other tables:
1) "QryAbsent" - this looks at each entry in a table which records employees leave start and end dates. Where the planned absence is current (i.e. today's date falls in the range of leave) it puts the employees unique ID (PNel_#) into a field called "Absent" - this all works fine.
2) "QryOn Assign" - this looks at each entry in a table which records assigned work. Where the assigned work is current (i.e. today's date falls in the range of assignment) it puts the employees unique ID (PNel_#) into a field called "Assigned" - this also works fine.
Now the challenge.
I want to create another query, called, lets say "AvailForWork". This should list all employees in the "TblListEmployees" table, except where their personnel numbers appear in [QryOnAssign]![Assigned] or [QryAbsent]![Absent]
I've spent most of today fiddling, fruitlessly scouring the web and I'm loosing the will to live! Any help or pointer would really be appreciated.
Thanks,
JW191.