Thanks, I've got it working now! - Jason Wong > Use <dtml-let> to change the names of the sequence-items like this: > <dtml-in query_A> > <dtml-let a_seqitem="_['sequence-item']"> > <dtml-in query_B> > <dtml-var a_seqitem> > <dtml-var sequence-item> > </dtml-in> > </dtml-let> > </dtml-in> > -- > Stephen Pitts > smpitts@midsouth.rr.com