The following assumes that there will always be at least two lines. You'll
likely need to add a test for that, else you'll get an error if there is
only one line, or none.
If my memory is correct, I think you end up with a carriage-return/line-feed
combination if the user presses Enter alone to start a new line (works in a
text box with the multiline property set to true) but a single
carriage-return if the user presses Ctrl+Enter (as you have to to start a
new line if entering data directly into a table). Hence the use of the
Replace() function to ensure consistent line-endings.
I'm assuming Access 2000 or later - the Split() and Replace() functions were
both new in Access 2000, so this code will not work in Access 97.
Public Sub TestSub()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim astrWork() As String
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT TestMemo FROM tblTest")
Do Until rst.EOF
astrWork = Split(Replace(rst("TestMemo"), vbCrLf, vbCr), vbCr)
Debug.Print astrWork(UBound(astrWork) - 1),
astrWork(UBound(astrWork))
rst.MoveNext
Loop
rst.Clone
Set rst = Nothing
Set db = Nothing
End Sub