PC Review


Reply
Thread Tools Rate Thread

Access Automation...

 
 
Bob Barnes
Guest
Posts: n/a
 
      9th Mar 2008
What is the Outlook method to add an Access Unbound textbox (used for a
"message") in automation.

I have....
Dim Outl As Outlook.Application, MyMail As Outlook.MailItem, N$
On Error GoTo AAA1
N = "C:\BobDev\Sales" & Format(BegDaily, "mmddyy") & "_" & Format(EndDaily,
"mmddyy") & ".snp"
DoCmd.OutputTo acOutputReport, "DailySummary", _
"Snapshot Format", N, False
Set Outl = CreateObject("Outlook.Application")
Set MyMail = Outl.CreateItem(olMailItem)
MyMail.To = "(E-Mail Removed)"
MyMail.Subject = "Sales Summary" & Format(BegDaily, "mm_dd_yy") & "_" &
Format(EndDaily, "mm_dd_yy")
MyMail.Attachments.Add N
'MyMail.Display
SendKeys "^{ENTER}"
Set Outl = Nothing: Set MyMail = Nothing
AAA2:
Screen.MousePointer = 1: Exit Sub
AAA1:
Select Case Err
Case Else
MsgBox "Error Number " & Err.Number & " " & Err.Description: Resume 'AAA2
End Select

TIA - Bob

 
Reply With Quote
 
 
 
 
Milly Staples [MVP - Outlook]
Guest
Posts: n/a
 
      9th Mar 2008
Try posting this to microsoft.public.outlook.programming_vba for assistance with programming questions. Few developers hang out here.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact. All
unsolicited mail sent to my personal account will be deleted without
reading.

After furious head scratching, Bob Barnes asked:

| What is the Outlook method to add an Access Unbound textbox (used for
| a "message") in automation.
|
| I have....
| Dim Outl As Outlook.Application, MyMail As Outlook.MailItem, N$
| On Error GoTo AAA1
| N = "C:\BobDev\Sales" & Format(BegDaily, "mmddyy") & "_" &
| Format(EndDaily, "mmddyy") & ".snp"
| DoCmd.OutputTo acOutputReport, "DailySummary", _
| "Snapshot Format", N, False
| Set Outl = CreateObject("Outlook.Application")
| Set MyMail = Outl.CreateItem(olMailItem)
| MyMail.To = "(E-Mail Removed)"
| MyMail.Subject = "Sales Summary" & Format(BegDaily, "mm_dd_yy") & "_"
| & Format(EndDaily, "mm_dd_yy")
| MyMail.Attachments.Add N
| 'MyMail.Display
| SendKeys "^{ENTER}"
| Set Outl = Nothing: Set MyMail = Nothing
| AAA2:
| Screen.MousePointer = 1: Exit Sub
| AAA1:
| Select Case Err
| Case Else
| MsgBox "Error Number " & Err.Number & " " & Err.Description: Resume
| 'AAA2 End Select
|
| TIA - Bob
 
Reply With Quote
 
Bob Barnes
Guest
Posts: n/a
 
      9th Mar 2008
Will do - thank you - Bob

"Milly Staples [MVP - Outlook]" wrote:

> Try posting this to microsoft.public.outlook.programming_vba for assistance with programming questions. Few developers hang out here.
>
> --Â
> Milly Staples [MVP - Outlook]
>
> Post all replies to the group to keep the discussion intact. All
> unsolicited mail sent to my personal account will be deleted without
> reading.
>
> After furious head scratching, Bob Barnes asked:
>
> | What is the Outlook method to add an Access Unbound textbox (used for
> | a "message") in automation.
> |
> | I have....
> | Dim Outl As Outlook.Application, MyMail As Outlook.MailItem, N$
> | On Error GoTo AAA1
> | N = "C:\BobDev\Sales" & Format(BegDaily, "mmddyy") & "_" &
> | Format(EndDaily, "mmddyy") & ".snp"
> | DoCmd.OutputTo acOutputReport, "DailySummary", _
> | "Snapshot Format", N, False
> | Set Outl = CreateObject("Outlook.Application")
> | Set MyMail = Outl.CreateItem(olMailItem)
> | MyMail.To = "(E-Mail Removed)"
> | MyMail.Subject = "Sales Summary" & Format(BegDaily, "mm_dd_yy") & "_"
> | & Format(EndDaily, "mm_dd_yy")
> | MyMail.Attachments.Add N
> | 'MyMail.Display
> | SendKeys "^{ENTER}"
> | Set Outl = Nothing: Set MyMail = Nothing
> | AAA2:
> | Screen.MousePointer = 1: Exit Sub
> | AAA1:
> | Select Case Err
> | Case Else
> | MsgBox "Error Number " & Err.Number & " " & Err.Description: Resume
> | 'AAA2 End Select
> |
> | TIA - Bob
>

 
Reply With Quote
 
Bob Barnes
Guest
Posts: n/a
 
      9th Mar 2008
Milly - I'm getting the "Warning Message" about someone trying to access
addresses..is this "Normal" and is there a way to turn that off?

I work w/ a Network guy who would be well-versed in Security.

TIA - Bob

"Milly Staples [MVP - Outlook]" wrote:

> Try posting this to microsoft.public.outlook.programming_vba for assistance with programming questions. Few developers hang out here.
>
> --Â
> Milly Staples [MVP - Outlook]
>
> Post all replies to the group to keep the discussion intact. All
> unsolicited mail sent to my personal account will be deleted without
> reading.
>
> After furious head scratching, Bob Barnes asked:
>
> | What is the Outlook method to add an Access Unbound textbox (used for
> | a "message") in automation.
> |
> | I have....
> | Dim Outl As Outlook.Application, MyMail As Outlook.MailItem, N$
> | On Error GoTo AAA1
> | N = "C:\BobDev\Sales" & Format(BegDaily, "mmddyy") & "_" &
> | Format(EndDaily, "mmddyy") & ".snp"
> | DoCmd.OutputTo acOutputReport, "DailySummary", _
> | "Snapshot Format", N, False
> | Set Outl = CreateObject("Outlook.Application")
> | Set MyMail = Outl.CreateItem(olMailItem)
> | MyMail.To = "(E-Mail Removed)"
> | MyMail.Subject = "Sales Summary" & Format(BegDaily, "mm_dd_yy") & "_"
> | & Format(EndDaily, "mm_dd_yy")
> | MyMail.Attachments.Add N
> | 'MyMail.Display
> | SendKeys "^{ENTER}"
> | Set Outl = Nothing: Set MyMail = Nothing
> | AAA2:
> | Screen.MousePointer = 1: Exit Sub
> | AAA1:
> | Select Case Err
> | Case Else
> | MsgBox "Error Number " & Err.Number & " " & Err.Description: Resume
> | 'AAA2 End Select
> |
> | TIA - Bob
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access automation leaves Excel open which in turn locks 2nd automation attempts EagleOne@discussions.microsoft.com Microsoft Access 8 30th Jun 2008 01:27 AM
More automation in Access =?Utf-8?B?RnJlZWhhbDA0?= Microsoft Access Getting Started 4 15th Nov 2006 02:47 AM
Automation from Access =?Utf-8?B?QWRhbSBNaWxsaWdhbg==?= Microsoft Powerpoint 2 15th Jun 2006 05:12 AM
Automation - running code in one Access DB from another Access DB Phred Bear Microsoft Access VBA Modules 7 26th Jan 2005 04:10 AM
Automation w/ Access TD Microsoft Access VBA Modules 1 6th Apr 2004 06:18 AM


Features
 

Advertising
 

Newsgroups
 


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