CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Once Again "Use SQL String"

Print topic Send  topic

Author Message
werner schoenfeldinger
Posted: 04/12/2001, 4:58 AM

I am trying to implement the following Query into a CC-Grid:

SELECT t2.fID AS fID,
t2.fTitle AS fTitle,
t2.fAbstract AS fAbstract,
t2.fDate AS fDate,
t2.fContact AS fContact,
t2.fDeadline AS fDeadline
FROM t42Event t2
WHERE NOT EXISTS (SELECT a.fEvent AS qEvID FROM tAttendance a WHERE
a.fContact=" & GetParam("UserID") & "

If entered in Use SQL Query --> Error from ODBC
If the Where portion (NOT EXISTS ....) entered in the WHERE Textbox, it
doesn't do it.....

Any hints how to do it without custom coding?

thanx
-schoenf

Alexey Alexapolsky
Posted: 04/12/2001, 6:48 AM

Use "Where" textbox.
GetParam won't give you session id.
it's for http params only , while userid is a session parameter.
In asp use session("UserID")
In PHP use get_session("userid")


--
Regards,
Alexey
CodeCharge Support



werner schoenfeldinger <schoenf@chello.at> wrote in message
news:9b4591$vrf$1@mail.tankhill.com...
> I am trying to implement the following Query into a CC-Grid:
>
> SELECT t2.fID AS fID,
> t2.fTitle AS fTitle,
> t2.fAbstract AS fAbstract,
> t2.fDate AS fDate,
> t2.fContact AS fContact,
> t2.fDeadline AS fDeadline
> FROM t42Event t2
> WHERE NOT EXISTS (SELECT a.fEvent AS qEvID FROM tAttendance a WHERE
> a.fContact=" & GetParam("UserID") & "
>
> If entered in Use SQL Query --> Error from ODBC
> If the Where portion (NOT EXISTS ....) entered in the WHERE Textbox, it
> doesn't do it.....
>
> Any hints how to do it without custom coding?
>
> thanx
> -schoenf
>
>


   


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.