Question : Query -- replace duplicate values with null

I have a 1:M relationship between 2 tables.

As expected, when fields from both tables are inserted into a query, the value for e.g. field [Table1].[Description] exists as many times as [Table1].[Description] has records that are linked to [Table2].[Subdescription].   See example below.

Since I need to copy the "raw data" from this query directly into MS-Word, I'd like to replace any duplicates (in this Query 1 -- or in Query 2 that uses Query1 as source).    

Again, I do NOT want to use a report (using the hide duplicates property) -- instead, I'd like to replace (with null value) the dups directly in Query1 or Query2.   Is that possible?   If yes, how?

EEH
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Example -- Before:
A     A1
A     A2
B     B1
C     C1
C     C2
C     C3
 
Example -- After:
A     A1
      A2
B     B1
C     C1
      C2
      C3

Answer : Query -- replace duplicate values with null

Query2 can be expanded to include tblAcronym as follows

SELECT IIf(tblDefinition2.Definition = Query1.FirstDefinition,tblAcronym.Term,Null) AS CrazyFkID, tblDefinition2.Definition
FROM tblAcronym INNER JOIN (tblDefinition AS tblDefinition2 INNER JOIN Query1 ON tblDefinition2.TermFkID = Query1.TermPkID) ON tblAcronym.TermPkID = Query1.TermPkID;


Assuming I haven't royally screwed up the transposition of table names here, you could do this in one query like:

SELECT IIf(tblDefinition2.Definition = Query1.FirstDefinition,tblAcronym.Term,Null) AS CrazyFkID, tblDefinition2.Definition
FROM tblAcronym INNER JOIN (tblDefinition AS tblDefinition2 INNER JOIN (

SELECT tblAcronym.TermPkID, First(tblDefinition.Definition) AS FirstDefinition
FROM tblAcronym INNER JOIN tblDefinition ON tblAcronym.TermPkID = tblDefinition.TermFkID
GROUP BY tblAcronym.TermPkID
ORDER BY tblAcronym.Term

) AS Query1 ON tblDefinition2.TermFkID = Query1.TermPkID) ON tblAcronym.TermPkID = Query1.TermPkID;
Random Solutions  
 
programming4us programming4us