标题:ACCESS问题求助
只看楼主
zhaohen520
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-5-11
 问题点数:0 回复次数:1 
ACCESS问题求助
求平均后放入TEXT51中,提示是红色的地方错误,是怎么的呢
Private Sub Command2_Click()
  Adodc2.RecordSource = "select 电流, avg from db_1 "
Adodc2.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\db1.mdb;persist security info =false"""
Adodc2.Refresh
Text51 = Adodc2.Recordset(1)
End Sub
搜索更多相关主题的帖子: ACCESS 
2008-11-10 19:20
不说也罢
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:贵宾
威 望:39
帖 子:1481
专家分:4989
注 册:2007-10-7
得分:0 
Private Sub Command2_Click()
'加上这句再要出错的话,就要检查你的ConnectionString连接字串了
  Adodc2.RecordSource = "select 电流, avg from db_1 "
Adodc2.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\db1.mdb;persist security info =false"""
Adodc2.Refresh
Text51 = Adodc2.Recordset(1)
End Sub

===================================================
讨厌C#的行尾的小尾巴;和一对大括号{ }
===================================================
2008-11-10 19:41



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




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

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