Somehow I need to only return 1 record if there's two or more in the tables. I'm using this to create a mailing list labels so I don't want to print two or more labels for the same person. I want to find duplicate First and Last Name. Like Tim Wolf appears twice. I just need one label for him. But I need to print a label for Tina Wolf, and so on.
Here's my code so far, only reason I have code is cause access did it for me. I couldn't type this out myself. LOL
I tried to type in "GROUP BY [Customer List].[Last Name]" but that didn't work. Then I tried to use SELECT DISTINCT and that didn't work either. Any help would be greatly appreciated.
Here's my code so far, only reason I have code is cause access did it for me. I couldn't type this out myself. LOL
Code:
SELECT [Customer List].[Last Name], [Customer List].[First Name], [Customer List].Address, [Customer List].City, [Customer List].State, [Customer List].Zip, [Customer List].[Home #], [Customer List].[Work or Cell #], [Customer List].[PMA Cust], [Offsite Service Records].[PMA Cust] FROM [Customer List] LEFT JOIN [Offsite Service Records] ON [Customer List].ID=[Offsite Service Records].ID WHERE ((([Customer List].[PMA Cust]) Is Not Null)) OR ((([Offsite Service Records].[PMA Cust]) Is Not Null)) ORDER BY [Customer List].[Last Name];
Comment