![]() |
#2
ZHRXJR2017-06-16 10:27
|

Private Sub Command3_Click()
Dim sql As String
Text5.Text = ""
sql = "select * from customer where customer_name like'%" & Text5.Text & "%'"
= adCmdText
Adodc3.RecordSource = sql
Adodc3.Refresh
Text5.Text = Adodc3.Recordset("customer_name")
Set DataGrid3.DataSource = sql
DataGridRows = sql.RecordCount
End Sub