Hello
I am using a adodc component which is connected to a ms access table. I am displaying the information in a datagrid. I can display, add, save etc. The one problem I am facing is trying to search and only display the search results (not a find). The following code is what I am using:
Private Sub CmdSearch_Click()
Dim search As String
search = "SELECT * FROM Table1 WHERE Name = Mr Flibble"
Adodc1.RecordSource = search
Adodc1.Recordset.Update
DataGrid1.Refresh
End Sub
I don't get any errors but nothing really happens.
Any help, please.
Thanx
I am using a adodc component which is connected to a ms access table. I am displaying the information in a datagrid. I can display, add, save etc. The one problem I am facing is trying to search and only display the search results (not a find). The following code is what I am using:
Private Sub CmdSearch_Click()
Dim search As String
search = "SELECT * FROM Table1 WHERE Name = Mr Flibble"
Adodc1.RecordSource = search
Adodc1.Recordset.Update
DataGrid1.Refresh
End Sub
I don't get any errors but nothing really happens.
Any help, please.
Thanx