Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validation and candidate key
Message
 
À
25/01/1999 13:34:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00179806
Message ID:
00180798
Vues:
23
Thank you very for the help.
It helped me to solve my problem.

Best regards.

>>Hi,
>>
>>I have a table:
>> Rate_Memb N 12 2
>> Eff_date D
>>
>>Index Eff_date on Eff_date is a candidate index.
>>Buffering mode is optimistic table buffering.
>>
>>Users should enter Rate_memb and Eff_date manually.
>>In the textbox Valid event I validate This.Value:
>>
>>Local lRet
>>
>>lRet = !Seek(This.Value,"ratememb","eff_date")
>>if !lRet
>> =MessageBox("Duplicate effective date.",16,"Members rate")
>>endif
>>
>>Return lRet
>>
>>But On Seek() I got error on uniqness violation.
>>
>>What are solutions of the problem?
>>
>>Sincerely.
>
>Both John and Bob's suggestions are valid, I just wanted to throw in that if you are using VFP 6.0, this is an excellent place to use INDEXSEEK instead of seek. That way you can check for duplicate values without moving the reocrd pointer.
Igor Gelin
Database Developer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform