Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters (VFPOLEDB)
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01442771
Message ID:
01442813
Views:
27
>Not quite there yet. I have:
>VDataSourceG.SelectParameters.Add("mcust", TypeCode.String)
>VDataSourceG.SelectParameters.Add("mnoun", TypeCode.String)
>VDataSourceG.SelectCommand = "SELECT l_nbr,cust_name,noun,office,price,status from FY2010 WHERE cust_name like '%'+?+'%' and noun like'%'+ ?+'%'"
>but it's not returning any records.
>
>

Read the blog carefully

Cmd.Parameters.Add(new OleDbParameter("?startChar", "D"));
Cmd.Parameters.Add(new OleDbParameter("?endChar", "M"));

and sorry - I'm going to close the extra forums now - need to concetrate on studying for an hour.


>>>http://www.west-wind.com/WebLog/posts/660586.aspx
>>
>>Thanks a lot - very clear.

Also, as I was saying, use LIKE ? and LIKE ? and put % inside the value of the parameter.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform