Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating Parameter in Report's Data Environment
Message
From
30/04/1998 15:07:32
 
 
To
27/04/1998 16:33:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095243
Message ID:
00096087
Views:
16
I'm still struggling with this. I'm assigning the table names to variables based on the value of the company parameter passed from the form. I have to use the variable names in the SQL-SELECT statement to reference my tables. When I process the report, I receive alias not found messages. The error messages have the correct file name in them, such as alias apdist99 not found. I don't understand why it is interpreting the variables as aliases. Any ideas? Thanks again for your expertise! :) Here is my code:

SELECT * DISTINCT;
FROM apdist;
LEFT OUTER JOIN apaddr;
ON apdist.vendno = apaddr.vendno;
LEFT OUTER JOIN apmast;
ON apdist.vendno = apmast.vendno;
LEFT OUTER JOIN apvend;
ON apdist.vendno = apvend.vendno;
LEFT OUTER JOIN Glacnt;
ON apdist.glacnt = glacnt.glacnt;
WHERE apdist.dtstat <> "V";
AND apdist.dttype = "D";
AND apmast.ppriority <> " ";
AND apmast.paidamt > 0;
ORDER BY apdist.vendno
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform