Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append Blank or Insert Into?
Message
From
14/12/1998 15:16:28
Beth Wetherbee
Virginia Beach Public Schools
Virginia Beach, Virginia, United States
 
 
To
11/12/1998 13:08:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00136359
Message ID:
00167349
Views:
25
Oh, of course! Thanks Albert.

I finally just added a field for a 'real' unique key, used SYS(2015) for the default value, and made it the primary key, instead of the crazy concatenated key it used to have. All my problems went away. Good database design wins again.

Thanks again.

>Deleted records are still in the index and can potentially be recalled. That is why the exception is thrown. You could trap the error, move to the deleted record, recall it, and overwrite the data.
>
>>That makes sense. But it still seems odd to me that it would complain even though the 'duplicate' record was tagged for deletion. I even tried putting a filter on the primary index for NOT DELETED(). Guess I'll have to bite the bullet and implement a good table design. :) Thanks for your help!
>>
>>
>>>Beth,
>>>
>>>Uniqueness of indexes and valid rules on fields and records are evaluated when you update the buffer. You need to insure that the PK memvar is unique before you issue the INSERT INTO to avoid the error.
Beth Wetherbee, MCSD
VBCPS
Previous
Reply
Map
View

Click here to load this message in the networking platform