Are you allowing your users to input the "WHERE" part of the SQL in a free-form manner? Handling bad input by the user can be a problem.<br><br>I've seen some WHERE-clause designers that use drop-down listboxes and textboxes to allow their users to construct a query. Usually, they're like (in left-to-right order):<br> 1) listbox of available columns<br> 2) Listbox of comparison operators ("Like", "<", "<>", etc)<br> 3) Textbox for entering the right side of the comparison<br> 4) listbox or radio button to choose a conjunction: "and", "or", or <nothing><br><br>You still have to do some elementary parsing to check for input that makes sense. Or maybe just let it fail, and require that the user RTFM.<br><br>Chip H.<br>