Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax Error
Message
From
27/12/1999 09:13:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Syntax Error
Miscellaneous
Thread ID:
00308731
Message ID:
00308731
Views:
50
The following is part of the code from a click event. The only difference is that the entire select/union all statement (the body) is repeated 3 more times for lengths 4, 6, and 8. The objective is to list total bundles (data1.bundles + data2.bundles + ...) per record. When the event occurs, it produces a syntax error.




public gdValue
gdValue = Thisform.gd1.displayvalue

public szValue
szValue = Thisform.sz1.displayvalue

select bundle,length,grade,siz,shipdataid;
from data1;
into cursor 2ft;
where grade = gdValue and siz = szValue and length = 2;
union all;
select bundle,length,grade,siz,shipdataid;
from data2 ;
where grade = gdValue and siz = szValue and length = 2 ;
union all;
select bundle,length,grade,siz,shipdataid;
from data3 ;
where grade = gdValue and siz = szValue and length = 2 ;
union all;
select bundle,length,grade,siz,shipdataid;
from data4 ;
where grade = gdValue and siz = szValue and length = 2 ;
union all;
select bundle,length,grade,siz,shipdataid;
from data5 ;
where grade = gdValue and siz = szValue and length = 2 ;
union all;
select bundle,length,grade,siz,shipdataid;
from data6 ;
where grade = gdValue and siz = szValue and length = 2 ;
union all;
select bundle,length,grade,siz,shipdataid;
from data7 ;
where grade = gdValue and siz = szValue and length = 2 ;
union all;
select bundle,length,grade,siz,shipdataid;
from data8 ;
where grade = gdValue and siz = szValue and length = 2










REPORT FORM siz_grade2.FRX preview
Next
Reply
Map
View

Click here to load this message in the networking platform