I am trying to make a value from an SQL query the selected one from an HTML option list. But the following doesn't work and I can't see why. <td> <select name="Type"> <option <dtml-if expr="'<dtml-var Type>'=='Call'">SELECTED</dtml-if>> Call <option <dtml-if expr="'Meeting'=='<dtml-varType>'">SELECTED</dtml-if>> Meeting <option <dtml-if expr="'<dtml-var Type>'=='Letter'">SELECTED</dtml-if>> Letter </option></select> </td> <td><select name="Priority"> <option <dtml-if expr="'<dtml-var Priority>'=='1'">SELECTED</dtml-if>> 1 <option <dtml-if expr="'<dtml-var Priority>'=='2'">SELECTED</dtml-if>> 2 </option></select> </td> Any thoughts ? Tim Considine Email : timc@bizdev.co.uk