Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help. Email Problems. Dougp if you see this read please

Status
Not open for further replies.

Shadez

Programmer
Jul 5, 2001
57
0
0
US
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.
 
Ok now this is bugging me, I can't access the references section in the VB window :(
 
Perhaps this might help.
What version of Access are you using?

With 97 you will need the following reference libraries

Visual Basic for Applications
Microsoft Access 8.0 Object Library
Microsoft DAO 3.51 Object Library

Bring up any module and on the T_ools menu choose References to see what you have loaded then add as necessary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top