CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Parsing Text Help

Print topic Send  topic

Author Message
advcomputer

Posts: 68
Posted: 07/02/2007, 8:46 AM

I saw this on another thread and it seems pretty simple to execute. I tried the ASP code both BeforeExecuteSelect and BeforeBuildSelect event and they both retrun the same error;

where clause = 'fat' AND 'go'AND 1001

ADODB.Recordset error '800a0e78'

Operation is not allowed when the object is closed.

/Classes.asp, line 3338

Any help would be appreciated. Thanks in advance,

Jeff
===============================================================================

dim keywords, keyword, sep, where
' Probably want this in the Before Build Select of the Grid

where = ""
sep = ""

keywords = split(CCGetParam("Textbox1",""), " ") ' Split the Textbox containing ouse search parmeters, making an array of words

for each keyword in keywords
if keyword <> "" then
where = where & sep & "'" & keyword & "'"
sep = " AND "
end if
next

where = where & "AND " & request("s_categorydescription")
' DIsplay the where clause

print "where clause = " & where

' Eventcaller will be the Grid's datasource

upload.datasource.Where = where
View profile  Send private message
wkempees


Posts: 1679
Posted: 07/02/2007, 9:38 AM

Only help I can offer is
  
where clause = 'fat' AND 'go'AND 1001  

is missing a space between 'go'AND

also
  
where clause =  
seems wrong too, even compared to the example you include.
The error point to misformed SQL, most of the time (missing field, misspelled fieldname or in this case ......)


Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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