I am brand new to Access 2007. I am presently attempting to migrate from 2003 to 2007. My current 2003 database sends e-mails when a button is clicked. The e-mails gather information from the form. This works just fine in 2003. I am getting the error message "Compile error: User defined type not defined."
The debugger highlights the code "Dim objOutlook As Outlook.Application"
I am including an excerpt of the code here:
Private Sub ReqHomeDrive_Click()
On Error GoTo Err_ReqHomeDrive_Click
Dim strstrEmail, strBody As String, strSubject As String, strHPBody As String
Dim strAdm As String
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Dim strTo As String
Dim AddlInfo As String
Dim Sent4Info As String
Dim InfoRequestSentDate As String
Dim strAppAccess As String
Dim strEmplID As String
Dim strServer As String
Dim ReqDate
ReqDate = Date
------------
I am a novice at VBA and need your help. Anything you can do to help me find out why this is considered a user-defined function and not an imbedded function within Access would be greatly appreciated. I've read some of the posts here and see that line is used, apparently successfully.
Regards,
Ernestine
The debugger highlights the code "Dim objOutlook As Outlook.Application"
I am including an excerpt of the code here:
Private Sub ReqHomeDrive_Click()
On Error GoTo Err_ReqHomeDrive_Click
Dim strstrEmail, strBody As String, strSubject As String, strHPBody As String
Dim strAdm As String
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Dim strTo As String
Dim AddlInfo As String
Dim Sent4Info As String
Dim InfoRequestSentDate As String
Dim strAppAccess As String
Dim strEmplID As String
Dim strServer As String
Dim ReqDate
ReqDate = Date
------------
I am a novice at VBA and need your help. Anything you can do to help me find out why this is considered a user-defined function and not an imbedded function within Access would be greatly appreciated. I've read some of the posts here and see that line is used, apparently successfully.
Regards,
Ernestine