I am using sql server has a back end. I have a command button and 5 combo boxes.
When a user click on a command button then it should look for the any values entered in any combo box.
Basically the back end sql select statement will be haivng where clause with all these combo boxes values has filters.
If the user selects the value in 2 - 3 combo boxes then by back end sql select statement should be using AND condition.If the user doesn't select any value in combo box then it should display simple select * statement.
Basically the back end sql select would be
if any combo box has value then it should have select * from ... where column name = combo.value
if combo box value is "" then
select * from table name...
I hope it is clear.
Thanks,
Sam.
When a user click on a command button then it should look for the any values entered in any combo box.
Basically the back end sql select statement will be haivng where clause with all these combo boxes values has filters.
If the user selects the value in 2 - 3 combo boxes then by back end sql select statement should be using AND condition.If the user doesn't select any value in combo box then it should display simple select * statement.
Basically the back end sql select would be
if any combo box has value then it should have select * from ... where column name = combo.value
if combo box value is "" then
select * from table name...
I hope it is clear.
Thanks,
Sam.