Message-ID: <4L22Q9$5Kh@newsmth.org>
Subject: Access��菘��������
Date: Wed, 02 Nov 2005 08:24:58 +0000
From: OkBaby@newsmth.net-SPAM.no (OKBaby)
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!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!nntp-server.pubsub.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/Y/M.1130919657.f0
Lines: 26
Xref: news.cnusenet.org cn.bbs.comp.lang.visual-basic:18579
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������确��值��谢谢
--
����������一������没�薪诺模���一��只�芄���停�胤�呀��呀�������司���������睡����
������一����只���碌�一�危���一�尉�����������时��.
[m[1;37m�� ��源:��水木���� newsmth.net��[FROM: 222.35.80.*][m