PC Review


Reply
Thread Tools Rate Thread

Check for Outlook instance

 
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      6th Jul 2005
Hi all,
I have an email report button on one of my forms which creates a snapshot
report and sends it off to the required recipients. I need some code to run
before the report code to check to see if Outlook is open and if not, open
it. I imagine the code would be something like:

if not isopen(outlook.exe) then
Shell ("C:\Program Files\Microsoft Office2k\Office\outlook.exe")
end if

Can anyone supply the correct code??

Thanks in advance
Dave
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      6th Jul 2005
Take a look at http://www.mvps.org/access/api/api0007.htm at "The Access
Web"

If you don't know the class name for Outlook, take a look at
http://www.mvps.org/access/api/api0013.htm while you're there.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Dave" <(E-Mail Removed)> wrote in message
news:7B62E3BD-0985-47A3-86E4-(E-Mail Removed)...
> Hi all,
> I have an email report button on one of my forms which creates a snapshot
> report and sends it off to the required recipients. I need some code to
> run
> before the report code to check to see if Outlook is open and if not, open
> it. I imagine the code would be something like:
>
> if not isopen(outlook.exe) then
> Shell ("C:\Program Files\Microsoft Office2k\Office\outlook.exe")
> end if
>
> Can anyone supply the correct code??
>
> Thanks in advance
> Dave



 
Reply With Quote
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      6th Jul 2005
Thanks Douglas.
That stuff was gold.
Great site.
Cheers
Dave

"Douglas J. Steele" wrote:

> Take a look at http://www.mvps.org/access/api/api0007.htm at "The Access
> Web"
>
> If you don't know the class name for Outlook, take a look at
> http://www.mvps.org/access/api/api0013.htm while you're there.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:7B62E3BD-0985-47A3-86E4-(E-Mail Removed)...
> > Hi all,
> > I have an email report button on one of my forms which creates a snapshot
> > report and sends it off to the required recipients. I need some code to
> > run
> > before the report code to check to see if Outlook is open and if not, open
> > it. I imagine the code would be something like:
> >
> > if not isopen(outlook.exe) then
> > Shell ("C:\Program Files\Microsoft Office2k\Office\outlook.exe")
> > end if
> >
> > Can anyone supply the correct code??
> >
> > Thanks in advance
> > Dave

>
>
>

 
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
check instance running iccsi Microsoft Access Form Coding 8 22nd Apr 2010 03:46 PM
Why can't check event instance is nothing? Patrick Microsoft VB .NET 4 23rd Jan 2008 12:18 AM
Check if instance of exe is running already =?Utf-8?B?Um9i?= Microsoft C# .NET 4 20th Mar 2007 09:44 PM
Check for an instance of an array? JIPS Microsoft VB .NET 2 13th Jul 2005 08:23 PM
Check for another instance og execute =?iso-8859-1?B?wWf6c3Q=?= Microsoft Dot NET Framework Forms 2 8th Jul 2003 10:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 AM.