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
相关问答:
IsSqlDataBase = 0 '主数据库类型(1=SQL,0=AC)
'===========================================================================
SqlDatabaseName = "ads365" '主数据库名
S ......
_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
int ret = 0;
_RecordsetPtr pset;
CString sql;
& ......
要组合4张表的查询,分别是A表,B表,C表,D表;
A表
Game_id Game_Name
1 abc
B表
Category_ID Category_Name Game_id
& ......
我目前表的排列是上面这张图这情况:
我希望调整成:
如何做呢?
刚才试了下,点“开始”--“视图”--“设计视图”不行
PS:我用的是access 2007,上面这个表是mdb格式的
主菜单, 视图 ......