I add a command in a connection which is "Command1"
I also add a child command in "Command1" which is "Command2"
Then I add a DataReport1 and set the following:

DataSource = DataEnvironment1
DataMenber = Command1

Now my problem is when im trying to refresh all the data in DataEnvironment1 to view in DataReport

When using the code;

DataReport1.Datasource = DataeEnvinoment1.rsCommand1
DataReport1.Show

this message show;

Arguments are of the wrong type, are out of accetable range, or are in conflict with one another


Kindly help me solve my problem pls??