Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Like command not working in view
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00662782
Message ID:
00662786
Vues:
16
When setting the lc_ven variable, set it to "A*". The like clause will match any records that start with an A.

>I have the following view that doesn't show the results when I use "like" criteria:
>
>
>SELECT O_ord_pay.op_flag_1, O_ord_pay.op_flag_2, O_ord_pay.op_vendor;
> FROM dbbudget!o_ord_pay;
> WHERE O_ord_pay.op_flag_1 = 3;
>   AND O_ord_pay.op_flag_2 = 4;
>   AND O_ord_pay.op_vendor LIKE ?lc_ven
>
>
>
>but, if I used the following:
>
>
>SELECT O_ord_pay.op_flag_1, O_ord_pay.op_flag_2, O_ord_pay.op_vendor;
> FROM dbbudget!o_ord_pay;
> WHERE O_ord_pay.op_flag_1 = 3;
>   AND O_ord_pay.op_flag_2 = 4
>
>
>I get results in the vendor column showing text starting the letter with "A" (the text being AMERICAN FILE) but if I use the parameter with "like" criteria and then enter "A" for lc_ven prompt the results is an empty view. I know that we can do partial searchs on text in a column, but I am baffled why this is not working. Have I missed something here?
>
>Thanks
>Nick Patel
>'
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform