Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apostrophe in 'Create View' Statement
Message
 
 
To
26/08/2004 13:21:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00936451
Message ID:
00936712
Views:
28
I would still suggest creating your view with parameters. The benefit to that is you do not have to mess with converting non-character values to strings and concatenating that to your SQL if you have any. WHERE ShelfQuantity = ?nQuant AND ShippingDate = ?dShip work for numeric and date values respectively without having to convert them in your SQL string.

>Trouble is, it's not just a query. They need all the amenities - update, add, delete etc - within the filtered criteria. Ultimately, I just felt a filter was slower to use overall than a view, so I went this direction with it. It works well, or did until this little bug jumped up and bit me. Your idea is reasonably easily adapted though.
>
>Even without using "Text To", I suppose it would have made sense to parametrise the view, but since I had actual concrete input, at the time I guess it just seemed easier to use the input directly.
>
>All the other views are parameterised and are based on the key of this particular view, but for whatever reason, I didn't do it that way with this dynamic view.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform