M
mguffey5
I have a database that has multiple relationships such as the following
Main database is called cadets2 and it has relationships to the following:
PFA Data
PDT Data
FTU Data
AFOQT Data
Now the main data entry is pulled from cadets2 and I enter most of my data
on that form and its stored in that table and queries are pulled and reports
generated correctly.
The problem I'm running into is this. The above 4 listed tables that have
relationships to the cadets 2 table also store data that I need on some
reports, and the data stored in these tables is entered through sub-forms on
the main data entry form for the database.
My problem is as follows, all 4 of those tables will have multiple or
duplicate records for each cadet but I only need the most current one to show
in the query that is linked to the report for example in AFOQT Data a Cadet
takes this test and we get their scores and enter that information on the
sub-form so it is stored in the AFOQT Data table, but that cadet failed the
1st time so they have to retake the test 6 months down the road, after the
cadet takes the test a 2nd time we enter that data and they pass. How do I
get the query and report to only show the most current data be a fail or pass.
The table for AFOQT has the following cells:
Last Name
SSAN
AFOQT Pilot
AFOQT CSO
AFOQT AA
AFOQT Verbal
AFOQT Quantative
Pilot Qualified
CSO Qualified
2nd Failure
AFOQT Date
PIlot CSO Totals
Status
I forgot to mention that the relationship link to all the tables above are
Last Name and SSAN.
For the PFA Data I have the query to the report only looking for PFA's given
between specific dates, but the problem with the AFOQT Data table is we have
cadets for 4 - 5 years and they may have taken the test 4-5 years ago and
maybe twice and I only need the most current test to show up, and not
duplicate all of the cadets information in the query which then causes a
duplicate record to appear in the report of everything on the cadet.
Hopefully this helps.
v/r
Matt
Main database is called cadets2 and it has relationships to the following:
PFA Data
PDT Data
FTU Data
AFOQT Data
Now the main data entry is pulled from cadets2 and I enter most of my data
on that form and its stored in that table and queries are pulled and reports
generated correctly.
The problem I'm running into is this. The above 4 listed tables that have
relationships to the cadets 2 table also store data that I need on some
reports, and the data stored in these tables is entered through sub-forms on
the main data entry form for the database.
My problem is as follows, all 4 of those tables will have multiple or
duplicate records for each cadet but I only need the most current one to show
in the query that is linked to the report for example in AFOQT Data a Cadet
takes this test and we get their scores and enter that information on the
sub-form so it is stored in the AFOQT Data table, but that cadet failed the
1st time so they have to retake the test 6 months down the road, after the
cadet takes the test a 2nd time we enter that data and they pass. How do I
get the query and report to only show the most current data be a fail or pass.
The table for AFOQT has the following cells:
Last Name
SSAN
AFOQT Pilot
AFOQT CSO
AFOQT AA
AFOQT Verbal
AFOQT Quantative
Pilot Qualified
CSO Qualified
2nd Failure
AFOQT Date
PIlot CSO Totals
Status
I forgot to mention that the relationship link to all the tables above are
Last Name and SSAN.
For the PFA Data I have the query to the report only looking for PFA's given
between specific dates, but the problem with the AFOQT Data table is we have
cadets for 4 - 5 years and they may have taken the test 4-5 years ago and
maybe twice and I only need the most current test to show up, and not
duplicate all of the cadets information in the query which then causes a
duplicate record to appear in the report of everything on the cadet.
Hopefully this helps.
v/r
Matt