标题: 请高手帮忙!DAO多个结果如何显示 [打印本页] 作者: koreazheng 时间: 2006-1-20 01:43 标题: 请高手帮忙!DAO多个结果如何显示 Private Sub CommandButton1_Click()
Dim docNew As Document
Dim dbNorthwind As DAO.Database
Dim rdShippers As Recordset
Dim intRecords As Integer
Set docNew = ActiveDocument 'Documents.Add
Set dbNorthwind = OpenDatabase _
(Name:="D:\software\kordicworks\词典\korea.mdb")
Set rdShippers = dbNorthwind.OpenRecordset(Name:="user")
rdShippers.Index = "Korean" ******************只能在ACCESS中设定
rdShippers.Seek "=", TextBox1.Text ************
If rdShippers.NoMatch Then
MsgBox "NO RECORDS"
Else
MsgBox "FIND"
TextBox2.Text = rdShippers.Fields(3).Value
docNew.Content.InsertAfter Text:=rdShippers.Fields(3).Value
rdShippers.MoveNext
docNew.Content.InsertParagraphAfter********只能插入一个记录,如何把其它记录查出并显示出来啊?
End If