if i link two tables using standard equal join type.
i get "Unexpected extra token: INNER"
so if i change manually the sql query from
SELECT "OE61BHED"."Order #", "AR61ACST"."Name"
FROM "OE61BHED" "OE61BHED" INNER JOIN "AR61ACST" "AR61ACST" ON "OE61BHED"."Cust #"="AR61ACST"."Cust #"
to
SELECT "OE61BHED"."Order #", "AR61ACST"."Name"
FROM "OE61BHED" "OE61BHED", "AR61ACST" "AR61ACST"
WHERE "OE61BHED"."Cust #"="AR61ACST"."Cust #"
all is ok...
so, how to force Crystal Reports to use the second syntax.
plus, i'm in crystal adv dev 10, manual editing of sql is not allowed. i have to created "command" statement and that change all the way how to call fields...
Create a new report using Report Expert
[ol]
[li]Under the data tab, Add "OE61BHED" and "AR61ACST" and click next.[/li]
[li]Under the Linking Tab, link "OE61BHED"."Cust #" to "AR61ACST"."Cust #". Click next[/li]
[li]Under the data tab, simply click on the data fields you want to display[/li]
[li]Click finish since this is the extent of what you have shown on your post[/li]
[/ol]
To verify, click on Database->Show SQL Query and you should see the results of the Report Expert that I just sent you through. It should look very similar to your SQL
SELECT "OE61BHED"."Order #", "AR61ACST"."Name"
FROM "OE61BHED" "OE61BHED", "AR61ACST" "AR61ACST"
WHERE "OE61BHED"."Cust #"="AR61ACST"."Cust #
Since I don't have CR10, I am totally out of my environment on what you are doing or where it resides but are you trying to create a stored procedure or placing the SQL in a VB statement?
If so, you might get better help in Crystal Reports 2 Data Access forum.
at this point i'm already blocked.
so for now, i create the report using the command statement so i write my sql statement directly...but it's a bit of a pain compared to the automatism that i found usually in crystal over other databases...
i was just hoping for a solution to get std queries...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.