Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Views with Unions
Message
From
05/01/1999 13:21:28
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00172847
Message ID:
00172850
Views:
25
Hi Stephen ---

>How to define a view that is created via a union and use it?
>
>I have a table of sales orders (shipped) and SO (open). I have unioned the 2 together and I want a vp_CustNo as a parameter. How do I code that in the Create SQL View command?
>
CREATE SQL VIEW vue_orders AS ;
   SELECT * FROM shipped WHERE custno = ?vp_custno ;
   UNION ;
   SELECT * FROM salesopen WHERE custno = ?vp_custno

>This parameter is going to be populated by user selecting a customer from a view off the first page. The # of pages on this form set is growing daily. It's a customer support system and the wish list is growing way to fast.
>
>Any reasons not to do a 6 page formset in MM & CB?
>
>__Stephen Russell
>Memphis FPUG
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform