且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Crystal报表中删除重复记录?

更新时间:2023-01-29 19:15:04

嗨!!! Jayanta





请使用此查询



Hi!!! Jayanta


use like this query

<pre lang="SQL">SELECT Customers.CompName, Customers.Add, Customers.City, Customers.ContactName, Customers.Phone
FROM Customers
WHERE (((Customers.CompName) In (SELECT [CompName] FROM [Customers] As Tmp GROUP BY [CompName],[Add],[City] HAVING
Count(*)>1 And [Add] = [Customers].[Add] And [City] = [Customers].[City])))
ORDER BY Customers.CompName, Customers.Add, Customers.City;







ref :: http:/ /office.microsoft.com/en-in/access-help/find-eliminate-or-hide-duplicate-records-in-access-HA001034558.aspx [ ^ ]


Hi
选中要避免重复输入的字段的抑制复选框
Hi Check the suppress check Box for the field you want to avoid Duplicated entry