Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding records to a secondary table trought a grid Help
Message
From
11/07/1996 15:34:04
Marcelo Daniel
Martin Cubero S.A. de C.V.
Cuautla Mor., Mexico
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Adding records to a secondary table trought a grid Help
Miscellaneous
Thread ID:
00003794
Message ID:
00003794
Views:
78
I have two related tables (one to many), this relation is defined as a persistent relation on the database to provide referencial integrity, the relation is also defined in the dataenvironmet of the form and the properties of the grid are set for manage the relation too.

The init event of the form, appends records for both primary and secondary tables. The prymary table gets a unique default value. The value of the link field in the secondary table is repalced with the value of the fieldin the primary table.

When the form displays, the principal table controls, displays the new record, and the grid displays nothing.

With the debug window i can see that the record pointer in the primary table is set at the new record, but the pointer of the secondary table is at the end of file.

If ask to refresh the form or the grid, i get the record out of range error message.

I think that the relation it's not working, or the index files aren't updated when I insert the record.
Marcelo D. Burgos
Martin Cubero S.A. de C.V.
Reply
Map
View

Click here to load this message in the networking platform