CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 wrong code

Print topic Send  topic

Author Message
Mike
Posted: 06/21/2002, 4:47 AM

Can anyone tell me what's wrong with the code below?

SELECT tasks.priority_id, tasks.status_id, tasks.task_name, tasks.assigned_by, tasks.assigned_to
FROM tasks
WHERE tasks.assigned_by = " & session("UserID") & " OR tasks.assigned_to = " & session("UserID") & ";

Or has someone another idea to get the same result?

Using CC and ASP

Thanks in advance
Nicole
Posted: 06/24/2002, 2:23 AM

Mike,
posted sql should work. I suppose you're using it on SQL tab and get error during design time. It happens because when using custom sql CC connects to db and custom sql is executed in order to get field names. But once you have included asp code into sql it won't work as sql.
The workaround is to locate Where clause in Where field, not in SQL field.

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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