Hi
I have a form Form1 (List) with sourcetable Table1. When I move up/down the records in Table1 on Form1, I want to be able to Insert/delete/modify records in anothe table Table2. Shouldn't that be possible? I have tried putting my "update-code" on both the OnafterGetRecord and OnAfterGetCurrRecord on Form1, but getting the Error Transaction not started (error in Danish: "Du kan ikke ændre i databasen, før der er startet en ny transaktion").
0
Comments
Whats the reason :?:
He - he
I will build a filter on records in table1, by making some sort of entries in table2, and then use a calcfield on table 1 to see if there are any entries in table2. The reason for this is, that I need a complex filter and can not use a temporary record. But I have to update the entries in Table2....
(If you're unsure of where you can place your code to modify the 'non-source table to the form' try experimenting under the OnAfterInput or OnValidate of the "mock-fields" for the external table.)
[Be sure to make use of CurrForm.UPDATE(FALSE), or issue some kind of logic in 'Form - OnModifyRecord() : Boolean' as to prevent any changes to the source table]
I hope this will point you in the right direction,