PC Review


Reply
Thread Tools Rate Thread

Code runs in design mode

 
 
karlman
Guest
Posts: n/a
 
      26th Jan 2006
I notice a small quirk that caused me some trouble. I can work around
it but was wondering if there is a better way.

I have a custom form that sets some of the user defined fields upon
opening. It does this differently whether it is a new item or existing
item. One of the fields I populate with the name of the current user.

I had a strange problem where my name was showing up on these forms in
production when I never touched it. Apparently what is happening is
when I open the form in design mode the code is executing and
populating this field. Later when I publish the form the field is
prepopulated with my name in that field upon every new instance of the
form.

Is there an easy way to prevent this?

Thank you!

Karl Albrecht

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      26th Jan 2006
You can hold down the Shift key as you open the form to prevent its code from running. You may also want to check your field values on the All Fields page before you save as an .oft file backup or publish for production use.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"karlman" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I notice a small quirk that caused me some trouble. I can work around
> it but was wondering if there is a better way.
>
> I have a custom form that sets some of the user defined fields upon
> opening. It does this differently whether it is a new item or existing
> item. One of the fields I populate with the name of the current user.
>
> I had a strange problem where my name was showing up on these forms in
> production when I never touched it. Apparently what is happening is
> when I open the form in design mode the code is executing and
> populating this field. Later when I publish the form the field is
> prepopulated with my name in that field upon every new instance of the
> form.
>
> Is there an easy way to prevent this?
>
> Thank you!
>
> Karl Albrecht
>

 
Reply With Quote
 
karlman
Guest
Posts: n/a
 
      27th Jan 2006
Thank you very much for your reply. I was hoping for a more permanent
setting because I am likely to forget either of those steps on
occasion. I will just make it part of what I check and make the code
able to deal with it.

Thank you

Karl

 
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
code is running at design mode??? SS Microsoft Access 3 16th Aug 2007 10:45 AM
Email Code OK in debug mode...error when runs outside vwd .spider Microsoft ASP .NET 0 17th Jul 2007 01:18 PM
Query only runs in Design Mode =?Utf-8?B?aHViY2Fw?= Microsoft Access Queries 1 19th Apr 2007 01:19 AM
how can i insert code <p> in design mode? =?Utf-8?B?ZG9uJ3Qga25vdw==?= Microsoft Frontpage 2 27th Jul 2006 07:55 PM
Turning Design Mode off in VB code Steve Microsoft Excel Programming 0 21st Jan 2004 09:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 AM.