Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validation and candidate key
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Validation and candidate key
Miscellaneous
Thread ID:
00179806
Message ID:
00179806
Views:
57
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.
Igor Gelin
Database Developer
Next
Reply
Map
View

Click here to load this message in the networking platform