Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with view in Foxpro 5.0
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00044583
Message ID:
00044614
Views:
27
>I create view with view designer wizard named "Customer Listing" while saving it.
>I just select all Field from customer table so it's like
>CREATE SQL VIEW AS SELECT * From MyDBC!Customer
>Now If I wish to use this view as
>OPEN DATABASE MyDBC
>USE Customer Listing
>
>then it gives erro; "Command contains unrecognized phrase/keyword." These type of views are
>used with drag & Drop method. What am I doing wrong here? Please guide me.
>
>Note: There is a white space between Customer and Listing in the view name "Customer Listing".
>
>If I create view
>
>CREATE SQL VIEW lv_CustomerListing AS SELECT * From MyDBC!Customer
>
>OPEN DATABASE MyDBC
>USE lv_CustomerListing
>then it's work fine.
>
>Note: There is no white space in the view name.

Try this.....USE ("Customer Listing") or create a local variable like lcView and set it equal to your value: lcView = "Customer Listing", then USE (lcView)
If those don't work, take out the white space.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform