I don't see the code, but I think that what is wrongis the SELECT statement. Do a SELECT without the WHEREpart and pass the where critiria once the button isclick!