>Would you mind showing me how the code will look (I'm a little confused because of the '.cursor_name'.
>
>Also, I was trying to follow the VFP 5.0 advice to use a name expression instead of a macro substitution when possible. Is this not a case where this is possible?
David,
I find no reference to a function named EXISTS. Is that your UDF or what is it? Youa re trying to pass the return from an SELECT to a UDF is what it looks like. I would suggest doing it this way;
SELECT ... FROM ... WHERE ... INTO CURSOR Result
IF _TALLY > 0