HI, Im designing a DB for a collage, and need a query with like 20 columns, linked together from 3 tables.
The columns are as follows:
Name, phone, Address, City, State, Zip, SS, DOB, Year, Grade, Tuition, Books, Payments, and so on....
I need a way to select each of the columns by 4 criteria types, Equals to=, Not Equals to, Greater then<, and less then>,
So for eg. the db user can select students who live in a certain zip code, certain year, NOT in grade 5, Born between Sep 1 1990 and Sep 5 1990 with a tuition balance less then $50.
The way I figured ill do it is create a form which has 4 txt boxes for ea of the 20 columns and user can put in whatever criteria he wants, but its very complicated and im running into problems with the text boxes left blank.
The main thing I need is that when no criteria is selected for lets say DOB then he should output all DOB's, and just filter out by the other criteria boxes,
Am I doing it the right way or is there a much more simpler way to do that?
The columns are as follows:
Name, phone, Address, City, State, Zip, SS, DOB, Year, Grade, Tuition, Books, Payments, and so on....
I need a way to select each of the columns by 4 criteria types, Equals to=, Not Equals to, Greater then<, and less then>,
So for eg. the db user can select students who live in a certain zip code, certain year, NOT in grade 5, Born between Sep 1 1990 and Sep 5 1990 with a tuition balance less then $50.
The way I figured ill do it is create a form which has 4 txt boxes for ea of the 20 columns and user can put in whatever criteria he wants, but its very complicated and im running into problems with the text boxes left blank.
The main thing I need is that when no criteria is selected for lets say DOB then he should output all DOB's, and just filter out by the other criteria boxes,
Am I doing it the right way or is there a much more simpler way to do that?