OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Documents and Settings\\Administrator\\My Documents\\Success.mdb;");
            DataSet myDatset = new DataSet();
            string comanderStr = "select * from 行政区划";
            conn.Open();
            OleDbDataAdapter myAdpt = new OleDbDataAdapter(comanderStr, conn);
            myAdpt.Fill(myDatset,"行政区划");
            所属村comboBox.DataSource = myDatset;
            所属村comboBox.DisplayMember = "行政区划.fname";
            所属村comboBox.ValueMember = "行政区划.fname";
            conn.Close();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-11-24
  • 2021-12-20
  • 2022-12-23
相关资源
相似解决方案