The quastion not clear for me.
My problem very clear:
The user enter some invoice name in the 'txtspmnt' text box.
my method taking the value and creating cursor and populating it with data who based on this value.
after that I doing a genxtab query on this cursor.
the genxtab query entered to new cursor - xtabresult.
this cursor is the record source for the grid.
I think it's enough to understand the problem.
Thank you
Chaim