Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary Key - MyField AND NOT DELETED( )
Message
From
13/12/1999 10:21:28
 
 
To
13/12/1999 10:03:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00302696
Message ID:
00302720
Views:
21
>Hi,
> I have a table that contains primary key. I get uniqueness error when I try to delete the record and create record with the same primary key. I was told that to have NOT DELETED() in primary key expression. However, i couldn't have the expression working in table designer.. can anybody help??
>My code in expression column
>
>
>Field      Type       Expression
>myfield    Primary    myfield .AND. .NOT. DELETED()
>
>
>
>VFP return expression is valid when I verify it. But I get another error message....
>
>Thank you

Don't reuse the PK. Period. By definition, you don't have duplicate PKs, which is what you will have.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform