CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 replace where in report

Print topic Send  topic

Author Message
rbaldwin

Posts: 155
Posted: 07/08/2009, 9:13 AM

vb.net

i'm coding something like this

dim where = "name = 'fred'"

DirectCast(Select_,TableCommand).Where = where

but i get error like
Unable to cast object of type 'IP360Dashboard_2.Data.SqlCommand' to type 'IP360Dashboard_2.Data.TableCommand'.

what am i doing wrong?
View profile  Send private message
rbaldwin

Posts: 155
Posted: 07/15/2009, 6:54 AM

As per support:

I believe that you're using SQL data source type for the form. In this case the entire query is stored in SqlQuery property. You cannot access the Where property and edit it, you need to modify query directly via SqlQuery in Before Execute Select event:

CType(Select_,TableCommand).SqlQuery = new StringBuilder("select * from table_name where field1=" & System.Web.HttpContext.Current.Request.QueryString("param_name"))
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.

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.