Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you ROLLBACK a view
Message
From
06/03/1998 11:07:20
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00082524
Message ID:
00083009
Views:
48
>>Jim:
>>AERROR() shows Error 1547, "Cannot insert an empty row from a view into its base table". When I look up error 1547, it states that you cannot insert a blank record into a table. There is only one new row in the view, and it has something in it, so its not blank. I'm still stumped.
>>
>>Ed
>
>Ed,
>
>I just notice d anothr syntax error in the sample code, you have END TRANSACTION as one word instead of two. Try fixing that and see if the same thing is happening.

Right now I'm just trying get the base table to update, so I am typing the following at the command line:

OPEN DATABASE Data
SELECT 0
USE TableA
SELECT 0
USE Data!ViewA
CURSORSETPROP("buffering", 5, "ViewA")
SELECT ViewA
INSERT INTO ViewA(Dnis) VALUES("Test")
TABLEUPDATE(2,.T., "ViewA")

record is in view, but not in base table. TABLEUPDATE() returns F, AERROR() shows Error 1547, "Cannot insert an empty row from a view into its base table".

Ed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform