A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Command Button on Read Page



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 18th 06, 05:53 PM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 4
Default Command Button on Read Page

I have a form with a command button that I want to execute on the read
page when the message is received. (It is a workorder submission. The
command will add a record to an Access table). The command works just
fine on the Compose page when the new message is created. When the
message is sent and received the command no longer executes. I have
tried this several times on published forms and ofts. Has anyone seen
this behavior before?

Ads
  #2  
Old October 18th 06, 08:42 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default Command Button on Read Page

In article . com,
wrote:
I have a form with a command button that I want to execute on the read
page when the message is received. (It is a workorder submission. The
command will add a record to an Access table). The command works just
fine on the Compose page when the new message is created. When the
message is sent and received the command no longer executes. I have
tried this several times on published forms and ofts. Has anyone seen
this behavior before?

I am betting that you designed your form in split mode, and dragged the
button from your compose page to your read page, thinking all the while
that you were getting the same control on the read page. Unfortunately,
this creates a completely new control, with a new name, and I believe,
no code behind it. So, the solution, if you want to keep the current
form, is to create a new click-event handler for the control on the read
page, and copy in the code from the click handler for the control on the
compose page, to the click handler for the control on the read page.

If you decide to redesign the form, as you are going back into design
mode anyway, then, get a new, blank form of the same type, and the first
thing you do, you uncheck the split forms option on the forms menu.
Then design all the elements that are common between the two pages.
Now, and only now, you split the form and design the unique elements for
each page.

However, I do notice that you never said you needed anything unique on
the compose or read page. If you don't have such a need, then, in
design mode, just uncheck the split-form option on the forms menu. It
will warn you that anything on the read page will be lost. Since you do
not need anything that is on the read page, say yes. Then, everything
you see in design mode, and when you compose a new instance of that
form, will also be visible when the message is read. I think this
practice of opening a message in split mode when you start the design
environment was a big mistake by Microsoft, and has led many unwary
designer into this very same problem.

HTH.

--
Hollis Paul
Mukilteo, WA USA


  #3  
Old October 18th 06, 09:05 PM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 4
Default Command Button on Read Page


Hollis Paul wrote:
In article . com,
wrote:
I have a form with a command button that I want to execute on the read
page when the message is received. (It is a workorder submission. The
command will add a record to an Access table). The command works just
fine on the Compose page when the new message is created. When the
message is sent and received the command no longer executes. I have
tried this several times on published forms and ofts. Has anyone seen
this behavior before?

I am betting that you designed your form in split mode, and dragged the
button from your compose page to your read page, thinking all the while
that you were getting the same control on the read page. Unfortunately,
this creates a completely new control, with a new name, and I believe,
no code behind it. So, the solution, if you want to keep the current
form, is to create a new click-event handler for the control on the read
page, and copy in the code from the click handler for the control on the
compose page, to the click handler for the control on the read page.

If you decide to redesign the form, as you are going back into design
mode anyway, then, get a new, blank form of the same type, and the first
thing you do, you uncheck the split forms option on the forms menu.
Then design all the elements that are common between the two pages.
Now, and only now, you split the form and design the unique elements for
each page.

However, I do notice that you never said you needed anything unique on
the compose or read page. If you don't have such a need, then, in
design mode, just uncheck the split-form option on the forms menu. It
will warn you that anything on the read page will be lost. Since you do
not need anything that is on the read page, say yes. Then, everything
you see in design mode, and when you compose a new instance of that
form, will also be visible when the message is read. I think this
practice of opening a message in split mode when you start the design
environment was a big mistake by Microsoft, and has led many unwary
designer into this very same problem.

HTH.

--
Hollis Paul
Mukilteo, WA USA


Thanks I'll try that, however it appears that no CBF runs when the form
is recevied. I'm hearing it may be a security issue or one-off
(whatever that means). I need to do more research. I tried adding this

Sub Item_PropertyChange(ByVal Name)
MsgBox "The " & Name & " property changed."
End Sub

Works fine on compose, does not run when received.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button on Read Page [email protected] Outlook - Using Forms 2 October 19th 06 07:10 PM
Command buttons when using word as email button [email protected] Add-ins for Outlook 1 October 9th 06 10:27 PM
Delete Excel Command Button Before Email is Sent White Horse Outlook and VBA 1 April 28th 06 07:01 AM
Command bar button FaceID Icon donald Add-ins for Outlook 20 February 9th 06 07:42 PM
Command button not working on read page jbtempe Outlook - Using Forms 2 January 14th 06 12:25 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.