This is the code im using:
Code:
strSQL2 = "SELECT [Sender Name], [Subject], [Received], [Contents] FROM Inbox WHERE [Sender Name] ='" & Forms![assignEmail].OpenArgs & "'"
Set rst = db.OpenRecordset(strSQL2)
rst.MoveLast
If rst.RecordCount > 0 Then
rst.MoveFirst
Do While Not (rst.EOF)
recTemp = rst.Fields("[Received]")
sendTemp = rst.Fields("[Sender Name]")
subTemp = rst.Fields("[Subject]")
conTemp = rst.Fields("[Contents]")
db.Execute "INSERT INTO SavedEmails ([Sender Name], [Received], [Subject]) VALUES ('" & sendTemp & "', '" & recTemp & "', '" & subTemp & "')"
rst.MoveNext
Loop
End If
As you can see I have not included the [Contents] of the email and have had success with this method. It does exactly what I want. but im still having trouble with the special characters in the content of the email.