I have personnel database. I need to count strength in increments today, 30, 60, 90, 180
These are the fields that I think are important to the question:
PKPersonnel
ArrivalDate
DepartureDate
Service (Values would be USMC, USN, USA)
I need to select everyone that is Mustered (it's a checkbox) or will arrive in the future. (this part seems pretty easy.)
I think it could be an IIF Statement(grouping them into categories) so that I could sum them later.
I could also stack up the different groups into a UNION query. Todays Total, Those personnel that will still be here at each increment.
In the end, I would have results that look like this:
Service Total Available
USMC 23 21
USN 12 10
Further on, I would need to break it out between Officer/Enlisted and then again by MOS or skill, that's why I think if I just get the Personnel Key's and the totals in the increments, I can use other queries/reports to get greater fidelity.
Hopefully it makes sense. I found this old thread (thread701-770674) and can't seem to translate it to my needs. I have read Allen Browne's page on Sub Queries, and it seems like it is the answer, the thread referenced uses it, but I can't seem to crack it.
These are the fields that I think are important to the question:
PKPersonnel
ArrivalDate
DepartureDate
Service (Values would be USMC, USN, USA)
I need to select everyone that is Mustered (it's a checkbox) or will arrive in the future. (this part seems pretty easy.)
I think it could be an IIF Statement(grouping them into categories) so that I could sum them later.
I could also stack up the different groups into a UNION query. Todays Total, Those personnel that will still be here at each increment.
In the end, I would have results that look like this:
Service Total Available
USMC 23 21
USN 12 10
Further on, I would need to break it out between Officer/Enlisted and then again by MOS or skill, that's why I think if I just get the Personnel Key's and the totals in the increments, I can use other queries/reports to get greater fidelity.
Hopefully it makes sense. I found this old thread (thread701-770674) and can't seem to translate it to my needs. I have read Allen Browne's page on Sub Queries, and it seems like it is the answer, the thread referenced uses it, but I can't seem to crack it.