【发布时间】:2020-04-26 06:11:29
【问题描述】:
Private Sub txtSearch_Change()
If Frame1 = 1 Then 'Code
strRowsource = "select [Code],[Category],[product]" & "from giggly " & _
" where[Code] Like '* "&Me.txtSearch.Text&" *'"`
End If
List1.RowSource = strRowsource
End Sub
【问题讨论】:
-
你能修正一下格式吗?
-
另外,您可能应该使用不同的方式来访问您的数据库...您正在做的事情有潜在的危险。 portswigger.net/web-security/sql-injection