>My apologies, Brad. I only realised afterwards that my >answer was off by the length of a small >football-field. >Richard is right: have a look at the extents function. >My solution does work for determining the number of >lines if the keys for the columns are non-numeric. Thanks. That may prove useful later.