易截截图软件、单文件、免安装、纯绿色、仅160KB

access rs.recordcount,怎么会得到-1?

Dim ebfs
Set ebfs = Server.CreateObject("ADODB.Recordset")
ebfs.ActiveConnection = conn
ebfs.Source = "SELECT id from goods where lei=1 ORDER BY ID DESC"
ebfs.CursorType = 0
ebfs.CursorLocation = 2
ebfs.LockType = 1
ebfs.Open()

if not ebfs.eof then
response.write ebfs.recordcount
maxnum=ebfs.RecordCount
end if


为什么总是输出 -1??

thanks


相关问答:

asp跟Access数据连接问题。

IsSqlDataBase = 0 '主数据库类型(1=SQL,0=AC)

'===========================================================================
SqlDatabaseName = "ads365" '主数据库名
S ......

如何通过ADO使用聚合函数来查询(数据库为ACCESS)

_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
    int ret = 0;
  _RecordsetPtr pset;
CString  sql;
& ......

请教一个ACCESS的查询语句!

要组合4张表的查询,分别是A表,B表,C表,D表;
A表
Game_id  Game_Name
  1        abc


B表
Category_ID  Category_Name  Game_id
  & ......

我这ACCESS表的显示如何切换成下面这张图来

我目前表的排列是上面这张图这情况:

我希望调整成:

如何做呢?
刚才试了下,点“开始”--“视图”--“设计视图”不行

PS:我用的是access 2007,上面这个表是mdb格式的

主菜单, 视图 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号