Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Search
Message
From
15/10/2004 15:01:18
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
15/10/2004 14:40:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00951813
Message ID:
00951821
Views:
8
>I have a table that has a field with the first word begging with the same name (ie. bean green and bean pork) I would like to do a search by typing in either partial or full word bean and view all results. The following isn't working. Any direction appreciated.
>
>
>Descr = UPPER(thisform.text2.Value)
>
>lcSave = thisform.grid1.RecordSource
>thisform.grid1.RecordSource = ""
>SELECT  Name, MA, Buyer, Item, Pack, Size, Brand, Descriptio as Description;
>FROM sporder;
>where descriptio like DESCR ;
>ORDER BY Description;
>into CURSOR sorder
>thisform.grid1.RecordSource = lcSave
>
>thisform.grid1.recordsource = "sorder"
>
>
http://www.techonthenet.com/sql/like.htm
Descr = UPPER(thisform.text2.Value) + "%"
* etc.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform