SQL select to display all records on a continuous report?
Below is what I currently have. It displays the same value in the continuous report instead all values. What do I need to fix?
Code:
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM Temporary")
If Not (rs.EOF And rs.BOF) Then
rs.MoveFirst 'Unnecessary in this case, but still a good habit
Do Until rs.EOF = True
Me.txtAddressee = rs!Addressee
rs.MoveNext
Loop
Else
MsgBox "There are no records in the recordset."
End If
MsgBox "Finished looping through records."
rs.Close
Set rs = Nothing