
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.