Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Like command not working in view
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Like command not working in view
Miscellaneous
Thread ID:
00662782
Message ID:
00662782
Views:
50
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
'
Next
Reply
Map
View

Click here to load this message in the networking platform