syntax "last(select table)" issue
Hi,
I have small problem with this syntax.
Does the select statement of a record from a table only goes with the first last 9 entries?
I have a table of many about 100 records and ongoing (currency rates which will be updated every once a week) to pick always the latest one entry when creating a new record in another table.
Instead of manually choose the latest currency rate from the Currency Table, I created a button to auto select latest entry from that table when needed. The formula in the button "On click" is:
'Currency Rates' := last(select 'Currency Rates')
It seems however, that it only selects the latest of the first 9 entries of all and ignore the entries recorded afterwards.
Thanks for clarification.
Sebastian
3 replies
-
Sorry, uploaded the pic too small.
-
Hi Sebastian
I would suggest sorting the table
'Currency Rates' := last(select 'Currency Rates' order by Date)
Regards John
-
Hi John,
thanks. simple but effective. I knew I was missing something. I thought that ninox already sort the records of a table according to Id No and knows what was the first and what was the last entry.
Rgds Sebastian
Content aside
- 3 yrs agoLast active
- 3Replies
- 294Views