Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1547 - cannot insert empty row
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error 1547 - cannot insert empty row
Miscellaneous
Thread ID:
00116694
Message ID:
00116694
Views:
53
I have a parent table Projects, a child parm-view PurchaseOrderEdit based on the table PurchaseOrder, and a grandchild parm-view POLineEdit based on the table PurchaseOrderLines. The parm-views have no defaults because the underlying tables do that at commit time. The PurchaseORderLine table has default on iID of NextID() for it's PK, and a default of ParentKey( "PurchaseOrderEdit.iID" ) for iPurchaseOrder it's link it's parent table.

If I:

use projects in 0
use purchaseorderedit in 0
use polineedit in 0
sele polineedit
append blank
brow

The real code in the form is a little more complex, but this code fails in the command window. I get the 1547 error on the browse. I really don't understand why. There are no table rules preventing the append.

This functionality has worked for all my other forms which are parent-child. This is the first form that is parent-child-grandchild.

Any and all help is appreciated.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Next
Reply
Map
View

Click here to load this message in the networking platform