Not sure what version you are using or what interface for deploying but in most cases you cannot leave parameters blank therefore you will need to account users to enter something in both.
From there you should avoid using if-then in a select statement and just do one OR statement
Param1=id
or
param2=name
Edited by DBlank - 02 Aug 2010 at 3:33am