Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Search
Message
De
15/10/2004 15:01:18
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
À
15/10/2004 14:40:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00951813
Message ID:
00951821
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform