currentReport! principally will be treated like currentForm!, with the difference that SQL Statements can correlate to currentForm!, wenn they will be called in a form.
As example, in a report, only the data since a special user should be displayed:
| Field in Form | Name = txt_id Text | Text = 2 |
| Statement | SELECT * FROM MY_TABLE WHERE ID > currentForm!txt_id | |
This would mean that only the data will be shown in the report, wich are greater than the given ID in the prevous form.
When it is needed to get additional data about a special user, the following will be thinkable:
| Feld im Report | Name = txt_companyid | Text = 10 |
| Statement | SELECT * FROM COMPANIES WHERE ID = currentReport!txt_companyid | |
The field is not visible. The value is taken from the database.