CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 empty field detect in sql

Print topic Send  topic

Author Message
TheunisP

Posts: 342
Posted: 05/10/2007, 5:12 PM

Hi 1 and all, just ran into somthing stupid - I want a where clause but only want the records where a certain field is not empty - I'm not talking about a field that is NULL but one that has an empty string in it

but query builder removes the where if I test a field against an expression with value ""

any ideas?
View profile  Send private message
Benjamin Krajmalnik
Posted: 05/10/2007, 5:51 PM

Use the BeforeBuildSelect embed and hand code it in.

"TheunisP" <TheunisP@forum.codecharge> wrote in message
news:64643b4d4a5ca9@news.codecharge.com...
> Hi 1 and all, just ran into somthing stupid - I want a where clause but
> only
> want the records where a certain field is not empty - I'm not talking
> about a
> field that is NULL but one that has an empty string in it
>
> but query builder removes the where if I test a field against an
> expression
> with value ""
>
> any ideas?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

TheunisP

Posts: 342
Posted: 05/10/2007, 6:16 PM

Thanks B, I suppose there is bugs in query builder - I have found that using " " (notice the space) CCS translates it into "" (with no space)

scary
View profile  Send private message
r1xliquid

Posts: 41
Posted: 05/16/2007, 1:56 PM

why not use the trim function on the field, this would reduce any spaces to ""
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.