V
Vittles
I have a union query that pulls up a list of peoples names and some details
from 2 tables. One of the tables may have duplicated names (with
non-duplicated other details). For example, the 2nd table may list 3 entries
for John Smith with different city/state/country entries when I need to only
combine one of John Smith's records (understanding that the other fields may
not be filled in/accurate).
Is there a way to add another 'where' statement for the [Core-Project Info]
data selection statement to only pick one record based only on the first &
last name fields or what is the best way?
My current union query:
SELECT [PI FName], [PI MI], [PI LName], [PI Suf], [PI Degree], [PI Dept],
[Inst Name], [City], [State], [Country], [LOI-AB ID] FROM [Admin Book Info]
WHERE [LOI-AB ID]=[Forms]![Main Review Form]![LOI-AB ID]
UNION SELECT [CP Leader FName], [CP Leader MI], [CP Leader LName], [CP
Leader Suf], [CP Leader Degree], [CP Leader Dept], [CP Institution], [CP
City], [CP State], [CP Country], [LOI-AB ID] FROM [Core-Project Info]
WHERE [LOI-AB ID]=[Forms]![Main Review Form]![LOI-AB ID]
Thanks.
from 2 tables. One of the tables may have duplicated names (with
non-duplicated other details). For example, the 2nd table may list 3 entries
for John Smith with different city/state/country entries when I need to only
combine one of John Smith's records (understanding that the other fields may
not be filled in/accurate).
Is there a way to add another 'where' statement for the [Core-Project Info]
data selection statement to only pick one record based only on the first &
last name fields or what is the best way?
My current union query:
SELECT [PI FName], [PI MI], [PI LName], [PI Suf], [PI Degree], [PI Dept],
[Inst Name], [City], [State], [Country], [LOI-AB ID] FROM [Admin Book Info]
WHERE [LOI-AB ID]=[Forms]![Main Review Form]![LOI-AB ID]
UNION SELECT [CP Leader FName], [CP Leader MI], [CP Leader LName], [CP
Leader Suf], [CP Leader Degree], [CP Leader Dept], [CP Institution], [CP
City], [CP State], [CP Country], [LOI-AB ID] FROM [Core-Project Info]
WHERE [LOI-AB ID]=[Forms]![Main Review Form]![LOI-AB ID]
Thanks.