Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding and saving a record
Message
 
To
30/05/2003 09:17:52
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00794308
Message ID:
00794616
Views:
21
>I am using views

If I'm following you correctly, you're using a view to a table that is using the new autoincrementing field type (eg. VFP 8)? If so, then the problem is that the PK of the view isn't getting populated with the new key generated by the autoinc field-type. So, you're basically attempting to add a new record w/no PK. As far as I'm concerned, there isn't a good way of retrieving this new PK value; use NewID() instead.

If you're not using the new autoinc field, but are using the built-in NewID() stored procedure, I'd look at some of the other suggestions provided already.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform