Hey all, I need some help with figuring out the logic of the where stmt. Here's the situation: I have a web page front end, where the user inputs a criteria. If they want all pieces of type 3421, then they input 3421, and all pieces of type 3421 are displayed. Thats the easy part. However heres the hard part, if the user wants to see all pieces in the database, then they enter 0000 or some other input (it has to be a number, and four digits long). The trouble I'm having is how to do that in the where clause of the sql. Any help in figuring out the logic and/or some pointers to a web page that explains this would earn my undying gratitude and appreciation.
Lauren.
Lauren.