[求助]怎么从ACCESS调用数据到指定TEXTBOX里面呀?
我要做一个ACCESS调用数据到相应的每个TEXBOX里面去(选择题),但填充不了.是咋回事呀?couti link1= new couti("comm");
OleDbConnection con=link1.Conn;//(@"Provider=""Microsoft.Jet.OLEDB.4.0"";Data Source=""D:\毕业设计\WindowsApplication1\bin\Debug\Ksdb.mdb""");
this.oleDbDataAdapter1.SelectCommand=new System.Data.OleDb.OleDbCommand("SELECT 题目 FROM s1 where 题目='"+domainUpDown1.Text.Trim() + "' and " + "备选1='"+textBox2.Text.Trim() + "' and 备选2='" + this.textBox3.Text.Trim()+"'",con);
if(con.State==ConnectionState.Open)
{
int count=this.oleDbDataAdapter1.Fill(dataSet11.s1);
}
couti是我定义的一个调用数据库的类,现在调用类了;但填充不了呀!
麻烦大家帮帮忙呀~~~~~~~~~~~~