Command button and Allowing access to address book by other programs

  • Thread starter Thread starter Russell
  • Start date Start date
R

Russell

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
 
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
 
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



 
Back
Top