已有一下操作,怎样得到返回记录的总数?
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb;Persist Security Info=False"Adodc1.RecordSource = "select * from 表1"Set DataGrid1.DataSource = Adodc1
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb;Persist Security Info=False"Adodc1.RecordSource = "select * from 表1"Set DataGrid1.DataSource = Adodc1
解决方案 »
- ByVal 与 ByRef求解
- 如何采集音频并方如Byte()然后从Byte()播放??
- 请问如何在OUTLOOK环境下设置电子邮件程序的SMTP和POP3服务器啊?
- 如何使用vb获得本机的多个IP?
- 如何将一个toolbar放到表单中
- 如何统计range里最大或最小的时间段
- 高手请教!如何在Access2000中使用Access97中设置有密码的数据库
- 在vb窗体中插入一个gif动画picture
- 各位老大,小弟有问题求救。!!!!!!!急急急急
- 如果 msflexgrid里只剩下一条记录怎么removeitem将他删除?
- 今天感觉不舒服,散分给曾经帮助我的朋友。
- 救命:关于随机文件的读取!!!!不得其解!在线解决马上结贴!
Adodc1.Recordset.movelast
Adodc1.Recordset.movefirst一下
Adodc1.CursorType = adOpenStatic
如下:Adodc1.CursorLocation = adUseClient
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from PROCEED"
Adodc1.Refresh
MsgBox Adodc1.Recordset.RecordCount
Adodc1.Recordset.movefirst一下///這話不錯,呵呵,小心報告-1的情況
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb;Persist Security Info=False"Adodc1.RecordSource = "select * from 表1"Set DataGrid1.DataSource = Adodc1
Adodc1.Recordset.movelast
Adodc1.Recordset.movefirst
msgbox "共有" & Adodc1.Recordset.recordcount & "条记录!!!"
msgbox Adodc1.Recordset.RecordCount
后提示:“对象变量或With块变量未设置”??