Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness Voilated
Message
 
À
08/10/1997 12:24:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00053723
Message ID:
00053780
Vues:
28
>>How could I prevent the error message "...Uniqueness Voilated..."
>>while updating record into a table.
>>Anyway to handle/prevent? I would like to control this error message
>>with the MESSAGEBOX() function. How to detect this error? Thanks.
>
>I guess, the source of message is some candidate or primary index. If you want to trap it, use standard 'ON ERROR do something' approach (AERROR works good here).

I had a similiar problem, and unfortunately worked around it to get the system on the floor by making the index
regular from primary. I found primary indexes weren't checked until the user tried to save the record
and then it bombed the system.

This now allows dups, and I thought I could solve it with some code in the error event. I wrote the code,
and it, too, messes up the dataentry process. I put it in the valid event for the text field but it just errors
out the whole record rather than allowing the user another chance.

Any general comments would be greatly appreciated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform