A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Emailing a form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 16th 06, 03:37 PM posted to microsoft.public.outlook.program_forms
robert
external usenet poster
 
Posts: 127
Default Emailing a form

I have created a custom form using the Post form. On the form, users will
select a recipient. I want that recipient to receive an email when the form
is posted. I have the following code. How do I get it to email the selected
recipient? I don't want to hard-code an email address in the code because
the recipient will vary.

Function Item_Write()
Set newItem = Application.CreateItem(0)
With newItem
..To = ???
..Subject = "New On-Site Visit Report"
..Body = "There is a new On-Site Visit Report for you to view."
..Send
End With
End Function
  #2  
Old October 16th 06, 09:35 PM posted to microsoft.public.outlook.program_forms
Jeff C
external usenet poster
 
Posts: 32
Default Emailing a form

Is this an Outlook Form or a form in MS Access? There is a big difference.
If Outlook form, you will be better served in the Outlook Forum or at
OutlookCode.com. If an MS Access form you would be better off saving your
form as a report, basing the report on a query that specifies the current
form, and then using the SendObject method to email the report.
--
Jeff C
Live Well .. Be Happy In All You Do


"Robert" wrote:

I have created a custom form using the Post form. On the form, users will
select a recipient. I want that recipient to receive an email when the form
is posted. I have the following code. How do I get it to email the selected
recipient? I don't want to hard-code an email address in the code because
the recipient will vary.

Function Item_Write()
Set newItem = Application.CreateItem(0)
With newItem
.To = ???
.Subject = "New On-Site Visit Report"
.Body = "There is a new On-Site Visit Report for you to view."
.Send
End With
End Function

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emailing a custom form robert Outlook - Using Forms 1 November 30th 06 05:26 PM
Emailing a Post form robert Outlook and VBA 4 November 1st 06 08:33 PM
Emailing Contacts made with custom form internally rikper Outlook - Using Contacts 1 August 11th 06 02:52 AM
Emailing Brianna Beverley Outlook Express 2 May 23rd 06 03:34 PM
Emailing a contact vCard with custom form loses all custom info Kim Outlook - Using Contacts 7 April 27th 06 01:21 AM


All times are GMT +1. The time now is 08:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.