Changing SQL in a child command at run time 
Author Message
 Changing SQL in a child command at run time

Is it possible to change the SQL of a child command at run time? I have a
command in the Data Environment called rsBranch, with a child command called
rsVehicles. I can access DataEnvironment.rsBranch, but I cannot access
DataEnvironment.rsVehicles. If there are 6 different fields in rsBranch
(including rsVehicles), I can access the first record in each by using:

DataEnv.rsReplacement.Fields(6)("vehicleName")

However, I can only access the first vehicle, even if a branch has more than
one vehicle. How do I access all vehicles? Is there an easier way to do
this? I appreciate your help.



Sat, 10 Nov 2001 03:00:00 GMT  
 Changing SQL in a child command at run time
Is it possible to change the SQL of a child command at run time? I have a
command in the Data Environment called rsBranch, with a child command called
rsVehicles. I can access DataEnvironment.rsBranch, but I cannot access
DataEnvironment.rsVehicles. If there are 6 different fields in rsBranch
(including rsVehicles), I can access the first record in each by using:

DataEnv.rsReplacement.Fields(6)("vehicleName")

However, I can only access the first vehicle, even if a branch has more than
one vehicle. How do I access all vehicles? Is there an easier way to do
this? I appreciate your help.



Sat, 10 Nov 2001 03:00:00 GMT  
 Changing SQL in a child command at run time
I had similar Problem. You can't pass a variable to a child command in the
DE. MS said oops! I have started using the "Shape" You can do anything w/
this at runtime. I learned to use it by playing w/ the Master/Detail
selection of the Data Form Wizard.

Quote:

>Is it possible to change the SQL of a child command at run time? I have a
>command in the Data Environment called rsBranch, with a child command
called
>rsVehicles. I can access DataEnvironment.rsBranch, but I cannot access
>DataEnvironment.rsVehicles. If there are 6 different fields in rsBranch
>(including rsVehicles), I can access the first record in each by using:

>DataEnv.rsReplacement.Fields(6)("vehicleName")

>However, I can only access the first vehicle, even if a branch has more
than
>one vehicle. How do I access all vehicles? Is there an easier way to do
>this? I appreciate your help.



Sat, 10 Nov 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Can a child command node be accessed in VB code at run-time

2. Can a child command node be accessed in VB code at run-time

3. Help: Change a MDI child's parent MDI form at run-time

4. Datareport: changing the SQL string at run-time

5. Change SQL Server at run time???

6. DataEnvironment SQL change at run time

7. DataEnvironment SQL change at run time

8. Datareport: changing the SQL string at run-time

9. Editing a child sql command

10. data environment child command and SQL stored procedure

11. Run-Time height of MDI Child form

12. Command object Run time error '3075'

 

 
Powered by phpBB® Forum Software