MRAB <pyt... at mrabarnett.plus.com> wrote: > I wonder whether it's complaining about the "as count" part because > "count" is the name of a function, although you do say that the same > query works elsewhere. Hey, good catch. Thanks; I'll change that. (It wasn't the problem, but no doubt someday it could be.) -Wm