Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if field entry is unique?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01143260
Message ID:
01143348
Views:
10
>>Try VFP9 only
>
>>SELECT * FROM  mytable ;
>>	WITH (Buffering = .T.) ;
>> 	WHERE <New User Entry> ;
>> 	TO SCREEN NOCONSOLE
>> 	
>>IF _TALLY > 1
>>  * Duplicate
>
>
>You really meant to write
>
>
>IF _TALLY > 0
>
>
>right?

It depends when you check. If after INSERT as your original code than my code is correct. If before INSERT than you're correct.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform