CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Changing Input SQL Parameters - Help!

Print topic Send  topic

Author Message
Hayward
Posted: 11/11/2002, 4:20 AM

I have a Grid MyGrid and it has one Parameter MyDate.

I need the grid to start off with a default of todays date if it does not get a date in the URL.

Can anyone tell me which event and how I change the SQLParameter.

I have tried the BeforeExecuteSelect Event and added
----------------------------------------------
If IsEmpty(Request.QueryString("MyDate") Then
LocalMyDate = Date
MyGrid.DataSource.Parameters("urlMyDate") = LocalMyDate
End If
----------------------------------------------
But that doesn't seem to have an effect.

TIA Hayward
Edd
Posted: 11/11/2002, 11:46 PM

The problem is that the SQL is already contructed by the time you execute the BeforeExecuteSelect event.

To change a parameter move it the BeforeBuildSelect and it should work.

Also according to Adam at CCS watch out that the date formats are exactly the same as the URL's format.


   


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.