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 -> PHP

 Problem with SQL Datasource in a Grid

Print topic Send  topic

Author Message
czajkcr

Posts: 3
Posted: 06/04/2008, 2:35 PM

Hi,

I have created a grid with a sql statement as the datasource. If I go into the visual query builder and click on show data the query is limited correctly, but when I run the query through the web app the grid shows all records. I don't know why it doesn't hold the limits when it is displayed with the web. It's driving me crazy. Here is my SQL statement.

SELECT Time_Intervals.Interval, Time_Intervals.Sort, Time_Intervals.Selected
FROM Time_Intervals
WHERE Time_Intervals.Selected=1
AND Time_Intervals.Interval NOT IN (select Inbound.Time from Inbound where Inbound.Date_Number =#06/09/2008#)
ORDER BY Time_Intervals.Sort

Any help would be greatly appreciated. Thanks.
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/04/2008, 3:35 PM

Are you by any chance using MSAccess in DesignMode and MySQL in Server mode?

  
SELECT Time_Intervals.Interval, Time_Intervals.Sort, Time_Intervals.Selected  
FROM Time_Intervals  
WHERE Time_Intervals.Selected=1  
AND Time_Intervals.Interval NOT IN (select Inbound.Time from Inbound where Inbound.Date_Number = '06/09/2008')  
ORDER BY Time_Intervals.Sort  
  

_________________
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
czajkcr

Posts: 3
Posted: 06/04/2008, 6:33 PM

My connection in design mode and server mode is both ms access and through odbc.
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.