以下是引用andymark在2006-7-9 22:25:00的发言:
Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Rs.Open "select * from 表1", Conn, adOpenDynamic, adLockOptimistic
For i = 1 To 5
Rs.AddNew
Rs.Fields("留言昵称") = "a"
Rs.Fields("留言QQ") = "b"
Rs.Fields("电子信箱") = "c"
Rs.Fields("留言内容") = i & ".jpg"
Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Rs.Open "select * from 表1", Conn, adOpenDynamic, adLockOptimistic
For i = 1 To 5
Rs.AddNew
Rs.Fields("留言昵称") = "a"
Rs.Fields("留言QQ") = "b"
Rs.Fields("电子信箱") = "c"
Rs.Fields("留言内容") = i & ".jpg"