$ 0 0 Thanks Mark,That was quick of you. The window function code now looks correct.Best wishesJohn C