I am getting this error when opening my database. I have reference Outlook object library as I have the following code that sends an email from outlook. If I remove the reference the code below doesn't work. Is there a way around this. I have read somewhere about late binding?
Code:
Private Sub Email_DblClick(Cancel As Integer)
On Error GoTo Err_Email_DblClick
DoCmd.SendObject acSendNoObject, , HTML, Me.Email, , , "Please quote reference number" & " " & Me!SchoolID & " " & "when phoning"
Exit_Email_DblClick:
Exit Sub
Err_Email_DblClick:
MsgBox Err.Description
Resume Exit_Email_DblClick
End Sub