VB Code:
Dim strArray() As String
Dim x As Integer
Dim strMailMessage As String
x = -1
'This section reads records & puts field data
'into a dynamic 2 dimensional array
With RecordsetName
.MoveFirst
Do Until .EOF
x = x + 1
ReDim Preserve strArray(1, x)
strArray(0, x) = !Field1Name
strArray(1, x) = !Field2Name
.MoveNext
Loop
End With
'This section reads the values in the array & concatenates them into
'a variable (each record's values separated by a tab & each record on
'a separate line) for use in the Message part of an email
For x = 0 To UBound(strArray, 2)
strMailMessage = strMailMessage & strArray(0, x) & vbTab & _
strArray(1, x) & vbCrLf
Next x
'Section to create email....