OK - figured it out: :select * from Company :<!--#sqlgroup where--> : <!--#sqltest recNum optional type=int--> : <!--#and--> : <!--#sqltest recName column=name optional type=nb--> :<!--#/sqlgroup--> Produces the desired results. My question is what is the opterational differences between the type=string and type=nb specifiers in this case? (Apart from it not doing what I thought *grin*). Thanks again, Sean. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= _ /\= ___ Sean McGerty aka DrBob C++::Java::Delphi::Web Developer / \ <*,-> mailto:DrBob@speednet.com.au m+61-412336990 Sydney Australia\_- _* [`-'] new address "Democracy: Four wolves and a lamb voting on lunch" v. -"-"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-