0
Go to last record
in code: I have a button in a table who create a record in another table and link correctly but it always display the first record. How to go to the last record of a table.
3 replies
-
let n := cnt((select TableName).FieldName);
openRecord(record(TableName,n)) -
I just noticed that the above code fails if any record in the FieldName column has no value. Someone else can probably come up with a better sample.
-
Dean I found the solution
openTable("Facture", "Saisie");
let i := (create Facture);
let currRec := Id;
i.(Contact := currRec);
openRecord(record(Facture,number(i)))
Content aside
- 4 yrs agoLast active
- 3Replies
- 919Views
-
1
Following