CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Build different SQL Query depending on value of ListBox

Print topic Send  topic

Author Message
SteveHumby

Posts: 20
Posted: 10/30/2006, 7:17 AM

Hi

I have a search page which displays the results in a Grid on a separate page.

The problem i have is that one of the fields contains a number, and another contains a date.

What i would like to do is have a listbox which contains a list of values such as:

1: Less Than
2: Greater Than

So if the user enters a number in the number field, if nothing is selected in the list box, the query searches for the exact value in the number field. If the listbox contains a value (such as 1 for =< or 2 for =>), then the query searches for a greater or less than result.

The same applies with the date field, this time using Before or After.

Any help would be appreciated.

Thanks
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.