Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique records
Message
 
To
18/12/1998 16:44:34
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00169031
Message ID:
00169034
Views:
26
>I have a product code table that Im trying to build a form to add new product codes to. I have an index set up for unique product codes, the problem that Im running into is I have my form with a field for the product code and in the when method i have code that seeks the table to see if the code has already been used. when I run the form and try adding a new product code that I know is in the table, i get an error that tells me that the uniquness of the index has been violated. how to I capture this error before it happens?
>
>Thanks
>Ron

You could have an insert trigger which returns false if the product code is already in the table. Or your valid method could validate and refuse to add if the code is already there.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform