Hi,

I have two tables (well that are required for this function anyway)

- tbl_Items
- tbl_Bids

and this is my code:

VB Code:
  1. Sub imgcmd_Search_Click(sender As Object, e As ImageClickEventArgs)
  2.    Dim  MyConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & _
  3.         server.mappath("cgi-bin/db/orctions.mdb"))
  4.    Dim CommandText As String = "SELECT * FROM tbl_Items WHERE SearchData like '%" &  txt_Search.text & "%'"
  5.  
  6.    Dim myCommand As New OleDBCommand(CommandText, myConnection)
  7.         myConnection.Open()
  8.         rep_Search.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
  9.         rep_Search.DataBind()
  10. End Sub

what I need to do is get the Fields 'Bidder' and 'BidValue' from 'tbl_Bids' as long as it matches the critera in the Where Clause which is looking at the 'tbl_Itmes'

I hope that is clear enough ... ?

Any help would be great thanks