OK this was working fine, I go on vacation and come back and it's now disfunctional. Along with a few other things, they had some "TEMP" programmer in here
Anyways I have a ton of messes to redo and need help with this one.
Function SEmail()
On Error Resume Next
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("EmailListing"
'Dim rs As ADODB.Recordset
' Set rs = New ADODB.Recordset
' rs.Open "EmailListing", CurrentProject.Connection, , , adCmdTable
With rs
Do While Not .EOF
BEmail = BEmail & IIf(Len(BEmail) > 0, ";", ""
& rs!BEmail
.MoveNext
Loop
End With
If BEmail = "" Then
MsgBox "There are currently no client records listed under this category", vbExclamation, "E-Mail Error"
Exit Function
End If
'DoCmd.SendObject acSendNoObject, , acFormatText, Bemail, , , "Your Subject Line", "Body of Text", 0
DoCmd.SendObject acSendNoObject, , , , , BEmail, , , , True
'DoCmd.SendObject acSendReport, "Project", "Snapshot Format", , , BEmail, "Official Invitation to Project", "You have been invitited to view a newly posted project at , True
End Function
ERROR
Compilation Error:
Can't find project or library
It worked fine before my vacation please help.
Function SEmail()
On Error Resume Next
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("EmailListing"
'Dim rs As ADODB.Recordset
' Set rs = New ADODB.Recordset
' rs.Open "EmailListing", CurrentProject.Connection, , , adCmdTable
With rs
Do While Not .EOF
BEmail = BEmail & IIf(Len(BEmail) > 0, ";", ""
.MoveNext
Loop
End With
If BEmail = "" Then
MsgBox "There are currently no client records listed under this category", vbExclamation, "E-Mail Error"
Exit Function
End If
'DoCmd.SendObject acSendNoObject, , acFormatText, Bemail, , , "Your Subject Line", "Body of Text", 0
DoCmd.SendObject acSendNoObject, , , , , BEmail, , , , True
'DoCmd.SendObject acSendReport, "Project", "Snapshot Format", , , BEmail, "Official Invitation to Project", "You have been invitited to view a newly posted project at , True
End Function
ERROR
Compilation Error:
Can't find project or library
It worked fine before my vacation please help.