You haven't said where you are putting this code, but if it is in a third field (where you want the results to go) then try this:if (DropDownList1.rawValue == 1)then $ = form1.Table2.Row3.DateTimeField1.formattedValueelseif (DropDownList1.rawValue == 2)then $ = form1.Table2.Row3.Date...