Never mind, i see it now. I was reading all the stuff about sql-var and sqltest, and I didn't realize that I could use standard dtml-ifs in there too. Van