Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append/Add Record in View - Blank key field in table
Message
From
23/07/1999 13:18:57
 
 
To
23/07/1999 13:12:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00245336
Message ID:
00245418
Views:
16
>>>(.t.) ". At this point the local view source table (People) is updated with all fields from the local view except for the key field (people_id). The key field (people_id) is correct in the local view but blank in the source table.
>>>
>>>This of course causes an update conflict when the second new reord is added, because both have blank keys.
>>>
>>>I made the key field updatable in the local view. This does not help. Local view has "Send SQL updates" checked, SQL where clause includes "SQL Key fields only" and Update using "SQL Update".
>>>
>>>I feel this is just a small thing I have overlooked, but I cannot pin down what it is.
>>
>>Is this a multi-table view? You might want to generate and look at the view code to see if anything unusual is happening.
>>
>>Dan
>
>No this is the simplest of views :
>
>SELECT *;
> FROM people;
> WHERE People.address_id = ?address.address_id

Can you post the code including all the update code. If you don't have code that will gen the views, I believe that Erik Moore has some code in the files section that handles this.

Dan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform