473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using a Recordset to Send Emails in Outlook

Hi,

I've attempted to make use of the Microsoft Knowledge Base Article
"ACC97: How to Use a Recordset to Send Outlook E-Mail to Multiple
Recipients - 318881" but I can't get it to completely work. I have
been continually receiving two error messages.

The first message states that it cannot find the Form "frmMail" which
I made sure to create.

Or it highlights the following line
Set objOutlookRecip = .Recipients.Add (Forms!frmMail! CCAddress)
and says this property is unavailable in design view.

I am currently using Access 2003 and am wondering if the difference in
version could be the problem.

Thanks,
Jonny
Nov 12 '05 #1
1 2405
DFS
Haven't seen that article, but what I've done is iterated through a
recordset, built up a string variable with the recipients (or cc, or
subject, or body) names, and added it to the DoCmd.SendObjec t command,
thusly:
DoCmd.SendObjec t acSendNoObject, , , recipientString , ccString, ,
subjectString, bodyString, True

or get the recipient from a form:

DoCmd.SendObjec t acSendNoObject, , , frm.listRecipie nts.Column(0, i),
ccString, , subjectString, bodyString, True

"Cameron" <jo************ **@hotmail.com> wrote in message
news:32******** *************** ***@posting.goo gle.com...
Hi,

I've attempted to make use of the Microsoft Knowledge Base Article
"ACC97: How to Use a Recordset to Send Outlook E-Mail to Multiple
Recipients - 318881" but I can't get it to completely work. I have
been continually receiving two error messages.

The first message states that it cannot find the Form "frmMail" which
I made sure to create.

Or it highlights the following line
Set objOutlookRecip = .Recipients.Add (Forms!frmMail! CCAddress)
and says this property is unavailable in design view.

I am currently using Access 2003 and am wondering if the difference in
version could be the problem.

Thanks,
Jonny

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
11850
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the following import win32com.client
0
1447
by: ifeoma | last post by:
I have a script which sends emails through Access. It sends these emails as if it was sent through Outlook. I had no problem with this using Office 2000 but with the newer Outlook 2002 it asks if I want to send the email (Yes/No/Cancel). And sometimes you don't see it asking you this. How do I tell Outlook 2002 to send it without asking? Thanks, Chris
1
47468
by: Michele | last post by:
Hi, I need to send the same Email to different people. I'm using Outlook XP and VB.Net. I tryed with the following code: Dim oOutL As Outlook.Application Dim oMail As Outlook._MailItem oOutL = CreateObject("outlook.application") For i = 0 To Email.Length - 1
4
4565
by: Nicole | last post by:
I found this code below to use to send emails using VB with Outlook. However, it gives these errors. 'Send' is ambiguous across the inherited interfaces 'Outlook._MailItem' and 'Outlook.ItemEvents_Event'. Name 'olByReference' is not declared. Name 'olMailItem' is not declared. Name 'olTo' is not declared. How could i edit this code to get it to work?
8
17053
by: John Brock | last post by:
I am currently using a VB.NET program to send out e-mails with plain text bodies (plus one attachment). The emails are being received as Rich Text messages (probably just my personal Outlook default, because I didn't do this in the program), but there is no actual formatting (italics, color, etc.) in the message body, which is passed to from VB.NET to Outlook as an unformatted text String. I want to start applying formatting to the...
1
2511
by: giesss | last post by:
I have been searching for a way to call a third party emailer to send mass emails from MS Access. Outlook thinks it is spam and asks the user to verify every email. I need to send many emails with an attachment without user input after the "Send email Button is clicked" I mainly need to know about how to call and insert data into the To: the Bcc: the SubjectLine: the Body: Currently I am using code similar to this. Private Sub...
5
1609
by: Richard Kure | last post by:
I encountered a problem sending an email on my windows XP, which I thought was a bit weird, cause it worked for me before on windows XP. So I tried on some other computers with windows XP, and managed to send emails on the systems where outlook was not installed. So I'm pretty sure the problem lies in outlook using exchange server. Does anyone know how to solve this, maybe send the mail to the exchange server or outlook instead. I dont...
2
3573
by: BizWorld | last post by:
hi, i need to send fax using .NET System.web.Mail component in my asp.net page. it works fine for emails but Fax works well in Outlook but when i try to send Fax using .NET object it did not work. To address of fax should be . here myfaxnoany means actual number that i need to use here. it only say Cdo.Message object failed. i looked at Outlook emails which were used to send faxes and found that email type is mentioned as Fax. i dont...
7
3477
by: Wiebe Tijsma | last post by:
Hi, I'm using C# + webDAV to create a draft message to be sent in a user's Drafts folder. I can create the message successfully, however when I open the message in outlook, it doesn't show the 'send' button, (only 'reply' etc as if it was a received message). I'm using exchange explorer to see the difference in webDAV properties
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.