标题:[求助]怎么从ACCESS调用数据到指定TEXTBOX里面呀?
只看楼主
wjphdq
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-11-3
 问题点数:0 回复次数:0 
[求助]怎么从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是我定义的一个调用数据库的类,现在调用类了;但填充不了呀!

麻烦大家帮帮忙呀~~~~~~~~~~~~
搜索更多相关主题的帖子: TEXTBOX ACCESS 数据 
2006-11-11 22:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-102332-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.803415 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved