private void cb_ClientName_SelectedIndexChanged(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.JET.OLEDB.4.0;" + @";Data Source=D:\Computing\Computing Project\Backup\RosieBookingandInvoiceBackup\Server\RosieBIDB.mdb;"); DataSet ds = new DataSet("Orders"); OleDbDataAdapter dsa = new OleDbDataAdapter(); dsa.SelectCommand.CommandText = @"SELECT Date_of_Order FROM tbl_Order WHERE Client_Name = '" + cb_ClientName.DisplayMember + "'"; dsa.TableMappings.Add("tbl_Order", "Orders"); dsa.Fill(ds); cb_CliOrdID.DisplayMember = ds.Tables[0].Columns[0].ToString() ; cb_CliOrdID.ValueMember = ds.Tables[0].Columns[0].ToString(); cb_ClientName.Refresh(); }