Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing DataEnvironment CommandText at runtime

Status
Not open for further replies.

zyrag

IS-IT--Management
Dec 4, 2002
252
0
0
PH
I have built a report template at design time with its datamember set to a DE command that is structured with a grouping on a specified field. For reference, the command name is "cmBalPerBranch_Grouping".

At runtime, using different table but with the same structure with the orig table (field names,types and the no. of fields), I have setup a SQL statement (identical to the orig statement, but using the other table) and attempted to change the commandtext using:
Code:
de.Commands("cmBalPerBranch_Grouping").CommandText=strSQL

This doesn't seem to work.

In another scenario, if I apply the same to a none grouped command, e.g. "cmBalPerBranch", changing the commandtext works fine.

What must I consider to change commandtext when the command in the DE has grouping?

TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top