Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicated records in a table
Message
From
14/06/1998 17:48:13
 
 
To
14/06/1998 17:37:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00108042
Message ID:
00108046
Views:
41
>what are your field types, what is the compound key expression and what is
>the critiria you wanted for uniqueness (because evidetly they don't match..)
>
>Arnon
>
>
>
>>
>>Problem:
>>In a table with a compound 'candidate' index my code checks the contents
>for an existing match to the compund key, using a seek().
>>If no record is found, then it inserts a new record.
>>Much to my surprise I have found up to 20% of all records are duplicated
>records.
>>
>>Any suggestions on avoiding this problem?
>>Thanks in advance,
>>Art Castro

Thanks for your interest in helping.

The fields are Field1 C(12) and Field2 C(16)
and the index is Field1 + Field2.

The seek uses Memvar1 + memva2. Both memvars are previously converted with a padr() function to be the correct length for each.

The table accepts the insertion of the duplicated value without an errror message.

When I use and SQL the duplictes show up. Same as with a broewse with 'nooptimze'. If I don't use 'nooptimize' in the browse the duplicates don't show.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform