Hi,
I'm sorry if people think that this is in the wrong forum but as it's got SQL in it and that's the main problem I'm hoping that somebody can help me? PLEASE!!!
Ok, a quick explanation of what I'm attempting.
I've got an ASP.net web page with VB.net coding, but I want to generate a report depending on the values selected from my DropDownLists (comboBoxes) and RadioButtons. The values in these are dynamic so I can't specify values in them.
The user will not always select a value from each of these, so here's the question!
How can I create an SQL SELECT statement that, if a value is not specified ignores that field (i.e that field is not taken into consideration when returning the values) and just creates the report using the fields specified.
I'm really sorry if I've confused people with the above paragraph but it's the best way I can think of wording it. I'll try to re-word it if somebody asks.
I REALLY hope that somebody can help me out.
Thanks in advance
Jane %-)
I'm sorry if people think that this is in the wrong forum but as it's got SQL in it and that's the main problem I'm hoping that somebody can help me? PLEASE!!!
Ok, a quick explanation of what I'm attempting.
I've got an ASP.net web page with VB.net coding, but I want to generate a report depending on the values selected from my DropDownLists (comboBoxes) and RadioButtons. The values in these are dynamic so I can't specify values in them.
The user will not always select a value from each of these, so here's the question!
How can I create an SQL SELECT statement that, if a value is not specified ignores that field (i.e that field is not taken into consideration when returning the values) and just creates the report using the fields specified.
I'm really sorry if I've confused people with the above paragraph but it's the best way I can think of wording it. I'll try to re-word it if somebody asks.
I REALLY hope that somebody can help me out.
Thanks in advance
Jane %-)