/ Published in: Visual Basic
Expand |
Embed | Plain Text
Dim sql As String Dim rstRecordset As recordset sql = "SELECT * FROM xxx;" Set rstRecordset = CurrentDb.OpenRecordset(sql, dbOpenSnapshot) If rstRecordset.RecordCount > 0 Then rstRecordset.MoveFirst Do While Not rstRecordset.EOF 'Access values with rstRecordset(0), rstRecordset(1), etc. rstRecordset.MoveNext Loop End If
You need to login to post a comment.
