PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Command button and Allowing access to address book by other programs

Reply

Command button and Allowing access to address book by other programs

 
Thread Tools Rate Thread
Old 22-09-2003, 06:43 AM   #1
Russell
Guest
 
Posts: n/a
Default Command button and Allowing access to address book by other programs


I have created a command button to insert the current date
and time into the Notes field of my Outlook contact form.
Trouble is, I have two problems:

1) When I hit the button, I get the following message:

A program is trying to acccess e-mail addresses you have
stored in Outloook. Do you want to allow this?
If this is unexpected, it may be a virus and you should
choose "No."
Allow access for [pull-down list with time durations up to
10 minumtes].

Of course I want access for longer than 10 minutes! But of
course there is no available option for this.

What do I need to do to prevent this message and allow
access always?

2) In order to get the command button to work at all, I
have to go to design mode and then Run This Form. The
button refuses to do anything if I just open a new contact
form.

What do I need to do to make this button work after
opening up a new contact form, without having to go to
design mode and then run the form?

3) Could the authors of this application have possibly
made it any MORE difficult to customize?????????? }:P
  Reply With Quote
Old 22-09-2003, 08:06 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Command button and Allowing access to address book by other programs

See http://www.slipstick.com/outlook/esecup.htm#autosec

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Russell" <rlrcom@sbcglobal.net> wrote in message
news:06c101c380cc$67f30790$a401280a@phx.gbl...
> I have created a command button to insert the current date
> and time into the Notes field of my Outlook contact form.
> Trouble is, I have two problems:
>
> 1) When I hit the button, I get the following message:
>
> A program is trying to acccess e-mail addresses you have
> stored in Outloook. Do you want to allow this?
> If this is unexpected, it may be a virus and you should
> choose "No."
> Allow access for [pull-down list with time durations up to
> 10 minumtes].
>
> Of course I want access for longer than 10 minutes! But of
> course there is no available option for this.
>
> What do I need to do to prevent this message and allow
> access always?
>
> 2) In order to get the command button to work at all, I
> have to go to design mode and then Run This Form. The
> button refuses to do anything if I just open a new contact
> form.
>
> What do I need to do to make this button work after
> opening up a new contact form, without having to go to
> design mode and then run the form?
>
> 3) Could the authors of this application have possibly
> made it any MORE difficult to customize?????????? }:P



  Reply With Quote
Old 23-09-2003, 06:17 PM   #3
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Command button and Allowing access to address book by other programs

I have no idea, I really don't use forms - you might have better luck in the
*outlook..program_forms newsgroup

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Russell Roth" <rlrcom@sbcglobal.net> wrote in message
news:%23FekSEZgDHA.2300@TK2MSFTNGP10.phx.gbl...
> Dmitry,
>
> Thanks for the reply. I solved the first problem by downloading and
> installing Express ClickYes. However, the second problem persists:
> > 2) In order to get the command button to work at all, I
> > have to go to design mode and then Run This Form. The
> > button refuses to do anything if I just open a new contact
> > form.
> >
> > What do I need to do to make this button work after
> > opening up a new contact form, without having to go to
> > design mode and then run the form?

>
> Any ideas?
>
> Thanks.
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



  Reply With Quote
Old 23-09-2003, 07:40 PM   #4
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Command button and Allowing access to address book by other programs

If the form no longer runs code after you have sent or saved it, you probably have done something to "one-off" the form. Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.slipstick.com/outlook/esecup.htm#formsec for more information.

To ensure that a form does not one-off:

-- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1]

-- For in-house corporate use with Exchange Server, publish the form to the Organization Forms library or a public folder's forms library, as appropriate for your application.

-- For collaboration via the Internet, publish your form to your Personal Forms library. Save it as an .oft file and send it to other people who need to use it with instructions to publish it with the same form name that you used.

Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.slipstick.com/dev/formpub.htm#oneoff for other possible causes.

[1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it.

The newsgroup interface at Developersdex (http://www.developersdex.com) does not automatically quote the text of the original message when you post a reply. Please take the time to quote the original message manually so that people reading your current response can understand what you're talking about. Otherwise, you may not receive the answer you're looking for.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Russell Roth" <rlrcom@sbcglobal.net> wrote in message news:%23FekSEZgDHA.2300@TK2MSFTNGP10.phx.gbl...
> > 2) In order to get the command button to work at all, I
> > have to go to design mode and then Run This Form. The
> > button refuses to do anything if I just open a new contact
> > form.
> >
> > What do I need to do to make this button work after
> > opening up a new contact form, without having to go to
> > design mode and then run the form?


  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

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