Thanks for suggestion.
I consider to use this code in client-server model (with ADO access) and I don't want to transfer all result records over LAN. I want use as backend different platform (from VFP dbf to SQL Server). I want to create select, which on backend side return all records, which I'll transfer to client.
Jano
Jan