Hi!
Just skip the code in the function when call is the first by maintaining the logical flag.
However, Why you did not tried thid to make using a single query as I suggested? Custom function approach will work MUCH slower.
>Hi,
> I did try to implement your method in my module. I faced a problem that, VFP stay in RECNO() = 1 for twice. I use messagebox() to display recno. It show recno 1 for twice, then only 2,3,4,5. It cause my Include Value is not correct. Any ideas.?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.