Board index » delphi » Looking for records with repeated data
Philip Ca
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Looking for records with repeated data
"<<<< L R G M >>>>" <luis...@bellsouth.net> wrote:
Quote>I have been using the LOCATE method to find out records in my DB tables. All is OK when I use it with Customer_Number key field (it has just one instanace), but others like First_Name or Last_Name can have repeated values in my long Customer.DB table. Although, I only can get the first of them. To sum it up, I want to create a searching routine loop usefull to keep in an ARRAY as many as repeated data I could find in the chosen FIELD. records. You can use TTable with a filter or TQuery with SQL. Either way, the If you already know the value you are trying to find, you can do this MyLookUpValue := 'Ernesto' You can use either a TTable or TQuery this way. HTH Phil Cain |