/ Published in: Visual Basic
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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