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 -> General/Other

 Dynamically Altering Where Clause

Print topic Send  topic

Author Message
NewbieRob

Posts: 20
Posted: 09/13/2005, 4:08 PM

Using ASP VBScript I have BeforeBuildSelect code which builds a Where clause for SQL based on what's in the s_keyword field of the search box for the grid. I parse s_keyword and insert OR between words. It appears that it is building the string correctly but when I use the syntax indicated in the help system to modify the SQL Where in CCS it just puts my string in front of "AND [Search Description] like '%search words here%'" instead of replacing the Where clause completely with my string, which of course produces a syntax error.

The code I am using to replace Where is:

q_WaterQuery.DataSource.Where = q_WaterQuery.DataSource.Where & sWhr

How can I replace Where with my string instead of just placing my string in front of what CCS creates for Where from s_keyword? I feel like I've almost got it but am missing one small step to finishing it up. This is a very important project so any tips will be a tremendous help.
View profile  Send private message
Edd


Posts: 547
Posted: 09/18/2005, 7:29 AM

See
http://forums.codecharge.com/posts.php?post_id=59072

Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
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.

Web Database

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.