Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO Shape command
Message
De
18/11/1998 17:49:00
Jody Cairns
OAO Technology Solutions
Moncton, Nouveau-Brunswick, Canada
 
 
À
18/11/1998 16:13:17
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00158996
Message ID:
00159042
Vues:
21
>I'm trying to use the data shaping command. I combine APPEND and COMPUTE in order to do grouping of the child table. It works ok unless I pass a parameter from parent table to the child table.
>
>SHAPE {SELECT ParentTable.* FROM ParentTable} AS Command1 APPEND (( SHAPE {select *, ? as newField from ChildTable} AS Command2 COMPUTE Command2 BY 'ChildField1') AS Command2_Grouping RELATE 'ParentField1' TO PARAMETER 0,'ParentField2' TO 'ChildField2') AS Command2_Grouping"

I think you are use a parameterized hierarchy incorrectly. The question mark should appear in a WHERE clause. So your 2nd SHAPE clause should be something like:

(SHAPE {select * as newField from ChildTable WHERE 'ParentField1' = ?} AS Command2 COMPUTE Command2 BY 'ChildField1'} AS Command2_Grouping RELATE 'ParentField1' TO PARAMETER 0

etc.

Let me know how it goes.

best,

jody
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform