-1
private void button3_Click(object sender, EventArgs e)
{
try {
connection.Open();
OleDbCommand command = new OleDbCommand();
command.Connection = connection;
command.CommandText = "select action from rvrait";
OleDbDataReader reader = command.ExecuteReader();
richTextBox1.Text = (reader["action"].ToString());
connection.Close();
}
catch(System.Data.OleDb.OleDbException)
{
}
...什麼是連接字符串? – SteveFerg
有沒有拋出異常? – user1666620