0
private void PopuniListu(){
listBox1.Items.Clear();
conn = new OleDbConnection(connString);
conn.Open();
cmd.Connection = conn;
cmd.CommandType = CommandType.Text;
cmd.CommandText = "SELECT Imeiprezimeautora FROM Tabela1";
dr = cmd.ExecuteReader();
while (dr.Read())
{
listBox1.Items.Add(dr.GetValue(0));
}
dr.Close();
conn.Close();
}
這裏是錯誤:沒有用於一個或多個必需參數博士給定值=的ExecuteReader()
No value given for one or more required parameters.
dr = cmd.ExecuteReader()
初始化一個OleDbCommand沒有可測量的服務表現懲罰並沒有一個名爲'Imeiprezimeautora'表'Tabela1' – Steve
領域Imeiprezimeautora是表Tabela1 100%視野... – user3083925