你手中的DataGrid不支持ADODC,找带OLEDB版本的!
解决方案 »
- 达人帮忙~Winsock(高分马上奉送)
- CheckBox标题中的字为何在不装VB6的机上不能全显示?
- 如何对文本文件进行操作
- 如何写这样的代码,即连接数据库后判断有无我所需的数据表,如无则给出提示?
- 谁使用过工作流组件Addflow做过实际运用?
- 向高手请教!!
- 急求,矩形拍样算法~最好是用遗传算法解决的例子。。。各位高手,帮帮忙啊!~
- txt导入access,
- 那位大哥大姐能告诉我DateDiff怎么用啊,这是什么意思啊!!
- Visual Studio.net和现在的Visual Studio有什么区别?
- 要做一个类似acdsee右边的图片浏览器,需要什么控件
- 有没有单独升级vb6的程序载??急请帮忙
至于
DataGrid1.Refresh就不需要了 。
' Change this path if needed.
strPath = "C:\PIME2001\DATA.MDB"
With Adodc1
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Persist Security Info=False;Data Source=" & strPath & _
"; Mode=Read|Write"
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.CommandType = adCmdText
.RecordSource = "SELECT * FROM EMPRESES"
.Refresh
End With
DataGrid1.Refresh请赐教.