Track when employees change depot (1 Viewer)

smally

Registered User.
Local time
Today, 16:03
Joined
Mar 29, 2005
Messages
71
Brilliant! I think I've done it properly. This is what I tried:


and:



Thanks for your help.
 

Attachments

  • SubQuery.png
    SubQuery.png
    19.3 KB · Views: 224
  • FinalQuery.png
    FinalQuery.png
    15.7 KB · Views: 229

plog

Banishment Pending
Local time
Today, 10:03
Joined
May 11, 2011
Messages
11,676
Just because I'm pedantic--I would bring in Depot_Name into DepotTraining instead of Depot_ID. Then in the main query, you don't need tblDepots, you just use Depot_Name from DepotTraining.
 

smally

Registered User.
Local time
Today, 16:03
Joined
Mar 29, 2005
Messages
71
I've chosen to use DepotID only because I am wanting to sort by the ID, but show the depot name. And in my full database I have more fields that I may eventually want to sort/filter by.

Since posting those pictures I have realised that the sub-query doesn't need to know about tblEmployees and tblDepots so I have removed them.

Again thanks for your help. I always struggle with joins and sub-queries, but I've learnt a lot.
 

Users who are viewing this thread

Top Bottom