I don't think you can do it as a Crystal function, but you can create a COM component in VFP 7 or 8 that you can call from Crystal Reports. Look at my website for an example of how to do this.
>What is the simplist way to have a user defined function with-in a crystal template, loop through the resulting query with out affecting the other functions or sections with-in the template?
>
>In other words, I need to parse through one of the child tables that is linked to determine if a specific record exists. I need to make this determination within the report header section.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer