且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我正在尝试从文本框搜索到datagridview

更新时间:2023-02-20 17:13:33

您忘记添加比较运算符,如=或L数量和价格后的IKE。

以下代码块中需要更改 -

You have forgotten to add compare operator like = or LIKE after Quantity and Price.
Change required in following code block-
bs.Filter = "Barcode LIKE '" & txtBar.Text & "*' or ItemName LIKE '" & txtBar.Text & "*' or ItemDescription '" & txtBar.Text & "*' or Quantity '" & txtBar.Text & "*'or Price '" & txtBar.Text & "*';"





希望,它有助于:)



Hope, it helps :)