PDA

Click to See Complete Forum and Search --> : DataGrid using ADO


ACN1234
Oct 27th, 2000, 02:14 PM
I am using an input box to allow the users to enter a string that they want to search on. Then it will pull up a datagrid with selected records based on the searchcriteria. The problem that I am having is that it is pulling all the records from the table. I am using Access and ADO. Any help in getting this to work is greatly appreciated.
Thanks

barrk
Oct 27th, 2000, 02:49 PM
datagrid.datasource = adodc
myvalue = inputbox.text
mysql = "select * from mytable where myfield = '" & myvalue & "'"
adodc.recordsource = mysql
adodc.refresh