@ProjNum and @SubProjNum are both fields returned by the secondary datasource.
My setup is exactly as you describe it, but max(@SubProjNum[@ProjNum = ProjNum]) returns NaN.
Could there be a type problem with the fields (i.e. max of an HTML string)?
Any help would be appreciated...
Barry