hello!!! newbie here....i also have this problem. my code goes like this...

vb Code:
  1. Private Sub cmdSearch_Click()
  2. Dim cn As New ADODB.Connection
  3. Dim rs As New ADODB.Recordset
  4.  
  5. cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\contact.mdb;Persist Security Info=False"
  6.  
  7. Set rs = cn.Execute("SELECT * FROM Table1 WHERE Contact ID = '" & txtContId.Text & "'")
  8.  
  9. DataGrid1.DataSource = rs
  10.  
  11. DataGrid1.Refresh
  12. End Sub

what i want for this code is to search for a particular record that will be inputted in the txtContId.text and then show the other contents of that record in a table form in the datagrid1.

but instead in gives an error "operator missing".

Please help me....God bless