ado 问题!急!!!

automation2008 2004-07-08 11:48:59
rsacount.Open "select × from table", conn

是查找全部的记录,但是 可以用 rsacount.Open "select acount() from table", conn,查找到有几条记录吗?怎么用这句语句呢??或者其他方法的呢??
...全文
123 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
warlord 2004-07-09
  • 打赏
  • 举报
回复
不能写成一句,COUNT是合计查询。
online 2004-07-08
  • 打赏
  • 举报
回复
rs.open "select count(*) as ll from table",conn,1,3
msgbox rs.fields("ll")
LichKingSZ 2004-07-08
  • 打赏
  • 举报
回复
select count(*) from table
混吃等死 2004-07-08
  • 打赏
  • 举报
回复
rs.open "select count(*) as Bm from table"

a=rs.fields!bm
automation2008 2004-07-08
  • 打赏
  • 举报
回复
可以 把 select * from table
和 resacount.open "select count(*) from table" 写程一句话不??
我时这样写的 rsacount.open "select count(*)as ll,name ,phone ,sex from talbe"
icount= rsacount.fields("ll")
其他的就写如msflexgrid 中但时没有一条数据呀!!
huangjianyou 2004-07-08
  • 打赏
  • 举报
回复
select count(*) from table
射天狼 2004-07-08
  • 打赏
  • 举报
回复
rsacount.Open "select count(*) as rows from table", conn

msgbox rsacount.Fields ("rows")

1,453

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧