Link to home
Start Free TrialLog in
Avatar of jerbell
jerbell

asked on

multiple combo and sql query???

well i just need a little guidance here!
I have a form with multiple datacombo box on it.
depending if a user select an item from those combo I will do an sql query and find the information.
Do i have to test each combo if the user selected something and then generate the sql.  So it would look something like this
if combo1 not null then
sqlquery=select * where bla bla bla&
endif
if combo2 not null then
sqlquery=sqlquery & bla2 bla2 bla2&
endif
.
.
.


or is there a way to generate the full sql and regardless if info is selected or not it would do it withouth all those test.
Am new to vb programing am using Vb 6.
any guidance would help
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jerbell
jerbell

ASKER

thats what i figured thanks