Message-ID: <4L2F50$5Gc@newsmth.org>
Subject: Re: Access��菘��������
Date: Wed, 02 Nov 2005 16:26:57 +0000
From: chenghao@newsmth.net-SPAM.no (傻�虾�����)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.visual-basic.mbox.zip!g2news1.google.com!news3.google.com!news.glorb.com!news.neu.edu.cn!news.newsmth.org!NEWSMTH
Newsgroups: cn.bbs.comp.lang.visual-basic
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: VisualBasic/q/M.1130948592.M0
Lines: 54
Xref: news.cnusenet.org cn.bbs.comp.lang.visual-basic:18585


为什么�� command �� excute?  ����直���� recordset.open ������������
�� adopenkeyset,�涂�����

������������� -1 ��原��应������为 tablename �������没�� PK �桑�����
��默�系��标方式�����芑�取 recordcount

�������业木��,�������丫���������使�� recordcount �耍������只��要����
count.. ���潜��� �� while not crs.eof ����循�������使�� 
adforwardonly �伪�模式���俣然�� for 循��+openkeyset �伪�+recordcount ��
效��煤芏�多,������� ORACLE�幕������乇�����


�� �� OkBaby (OKBaby) �拇������到: ��
: ��  ��: Access��菘��������
: ����站: 水木���� (Wed Nov  2 16:24:58 2005), 转��
: 
: 
:     Dim cmd As New ADODB.Command
:     Dim rs As New ADODB.Recordset
:     Dim cn As New ADODB.Connection
: 
: cn.Open strConn
: set cmd.ActiveConnection = cn
:     
: Dim SQLQuery as string
: SQLQuery = "Select * from tablename where name like '%abc%'"
: cmd.CommandText = SQLQuery
: 
: Set rs = cmd.Execute
: Msgbox rs.RecordCount
: rs.Move 3
: 
: �����玫�rs.recordcount=-1实����应����1000�,同时rs.move 3����
: ����薷母贸���玫���确�慕�������rs.recordcount������确��值��谢谢
: 
: 
: --
: ����������一������没�薪诺模���一��只�芄���停�胤�呀��呀�������司���������睡����
: ������一����只���碌�一�危���一�尉�����������时��.
: 
: 
: �� ��源:��水木���� newsmth.net��[FROM: 222.35.80.*]


--
����傻�虾����耍�����只���砂���女��

http://www.nba.com
http://espn.go.com/nba
http://nba.sports.sohu.com/


�� ��源:��水木���� newsmth.net��[FROM: 211.151.95.*]