A Recordset is basically an Array with the Table (or Query) data pre-entered in it.
You'd use a Recordset like this:
Code:
' Create an empty Recordset that you can use
Dim rstTableName as Recordset
' Grab the results of our Query into the Recordset variable
Set rstTableName = CurrentDb().OpenRecordset("SELECT x FROM y WHERE [x]='z', dbOpenDynaset)
' Set the Form Element Me!Text0 to the contents of Field x in Table y
Me!Text0 = rstTableName("x") ' Me!Text0 now equals "z"!
If your Table/Query results (the Recordset) have more than just a single Record in them, you can move back and forth through it by using the following builtin Methods:
rstTableName.MoveFirst = Go to the first Record in the Recordset
.MoveLast = Go to the last Record
.MoveNext = Go to the next Record
.MovePrevious = Go to the previous Record
.RecordCount = The number of Records in the Recordset (to be sure this number is accurate, you will want to do a MoveLast before checking this. That will force Access to actually load the whole Recordset)
.EOF = Are you at the end of the Recordset (no more Records!)
.BOF = Are you at the beginning of the Recordset (BEFORE the first record)