does anyone know what might be causing a compile error? I'm not at the computer where this problem is happening, but the message is:
compile error: user defined type not defined.
Sub SendEmails()
Dim db As DAO.Database, rst As Recordset, StrSQL As String, qdf As QueryDef, TblSize As Long
Dim rst2 As Recordset
Dim rstArchive As Recordset
Dim olapp As New Outlook.Application
'Dim olapp As Object
Help!