No, that was not a good idea, I'm afraid. Thanks anyway.

My problem is that I execute a SQL-query and that makes the number of records different each time. So, looking at the number of records in the table is not the solution here. I would like to have the number of records in the dataset or in the datagrid for displaying the number of search hits to the user.

/Anders