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

Tags: , , , , ,

Modifying Contact Form with Last Updated field





 
 
Thread Tools Display Modes
  #1  
Old August 4th 07, 08:50 AM posted to microsoft.public.outlook.program_forms
Keith S.
external usenet poster
 
Posts: 6
Default Modifying Contact Form with Last Updated field

Hi there,

I've added an extra page to the standard Contacts Form to include a few
extra fields, one of them for the "Last Updated" date. I set the Properties
for this field so that the initial value is Date(), and then check calculate
this formula automatically.

Whenever I visit that page and make a change, the Last Updated field gets
updated with the current timestamp. So far, so good.

The problem (I think) appears to be when I make a change to one of the OTHER
pages of the form, but not that page with the custom field.

Is there a way to set the field on one page to automatically update whenever
ANY part of the entry is updated?

Thanks,
Keith
Ads
  #2  
Old August 4th 07, 08:52 AM posted to microsoft.public.outlook.program_forms
Keith S.
external usenet poster
 
Posts: 6
Default Modifying Contact Form with Last Updated field

Er, I forgot to elaborate what the "problem" is. Whenever I make a change to
one of the pages of the form that doesn't contain this custom field, the
value doesn't get updated.

Keith

"Keith S." wrote:

Hi there,

I've added an extra page to the standard Contacts Form to include a few
extra fields, one of them for the "Last Updated" date. I set the Properties
for this field so that the initial value is Date(), and then check calculate
this formula automatically.

Whenever I visit that page and make a change, the Last Updated field gets
updated with the current timestamp. So far, so good.

The problem (I think) appears to be when I make a change to one of the OTHER
pages of the form, but not that page with the custom field.

Is there a way to set the field on one page to automatically update whenever
ANY part of the entry is updated?

Thanks,
Keith

  #3  
Old August 4th 07, 01:41 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Modifying Contact Form with Last Updated field

Using a formula for this scenario won't accomplish what you want. What you need is code behind the form to set the value when the user saves changes, e.g.:

Function Item_Write()
Item.UserProperties("Last Updated") = Date()
End Function

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Keith S." wrote in message ...
Er, I forgot to elaborate what the "problem" is. Whenever I make a change to
one of the pages of the form that doesn't contain this custom field, the
value doesn't get updated.

Keith

"Keith S." wrote:

Hi there,

I've added an extra page to the standard Contacts Form to include a few
extra fields, one of them for the "Last Updated" date. I set the Properties
for this field so that the initial value is Date(), and then check calculate
this formula automatically.

Whenever I visit that page and make a change, the Last Updated field gets
updated with the current timestamp. So far, so good.

The problem (I think) appears to be when I make a change to one of the OTHER
pages of the form, but not that page with the custom field.

Is there a way to set the field on one page to automatically update whenever
ANY part of the entry is updated?

Thanks,
Keith

  #4  
Old August 4th 07, 09:00 PM posted to microsoft.public.outlook.program_forms
Keith S.
external usenet poster
 
Posts: 6
Default Modifying Contact Form with Last Updated field

Thanks, Sue - that did the trick!

If you don't mind a newbie followup question, why does the formula not work
in this case? Does a formula only apply to one page, whereas code can apply
to all pages?

By the way, your web site (in your sig) has already answered just about
every other question I've had so far on customizing outlook forms. Great job.
Definitely makes me want to buy the book if I start getting deeper into
Outlook. So thank you for that, as well.

Keith

"Sue Mosher [MVP-Outlook]" wrote:

Using a formula for this scenario won't accomplish what you want. What you need is code behind the form to set the value when the user saves changes, e.g.:

Function Item_Write()
Item.UserProperties("Last Updated") = Date()
End Function

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Keith S." wrote in message ...
Er, I forgot to elaborate what the "problem" is. Whenever I make a change to
one of the pages of the form that doesn't contain this custom field, the
value doesn't get updated.

Keith

"Keith S." wrote:

Hi there,

I've added an extra page to the standard Contacts Form to include a few
extra fields, one of them for the "Last Updated" date. I set the Properties
for this field so that the initial value is Date(), and then check calculate
this formula automatically.

Whenever I visit that page and make a change, the Last Updated field gets
updated with the current timestamp. So far, so good.

The problem (I think) appears to be when I make a change to one of the OTHER
pages of the form, but not that page with the custom field.

Is there a way to set the field on one page to automatically update whenever
ANY part of the entry is updated?

Thanks,
Keith


  #5  
Old August 4th 07, 09:27 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Modifying Contact Form with Last Updated field

Your formula would always show the current date, not the last time the item was updated. I have no ideas about the strange behavior you reported, though.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Keith S." wrote in message ...
Thanks, Sue - that did the trick!

If you don't mind a newbie followup question, why does the formula not work
in this case? Does a formula only apply to one page, whereas code can apply
to all pages?

By the way, your web site (in your sig) has already answered just about
every other question I've had so far on customizing outlook forms. Great job.
Definitely makes me want to buy the book if I start getting deeper into
Outlook. So thank you for that, as well.

Keith

"Sue Mosher [MVP-Outlook]" wrote:

Using a formula for this scenario won't accomplish what you want. What you need is code behind the form to set the value when the user saves changes, e.g.:

Function Item_Write()
Item.UserProperties("Last Updated") = Date()
End Function



"Keith S." wrote in message ...
Er, I forgot to elaborate what the "problem" is. Whenever I make a change to
one of the pages of the form that doesn't contain this custom field, the
value doesn't get updated.

Keith

"Keith S." wrote:

Hi there,

I've added an extra page to the standard Contacts Form to include a few
extra fields, one of them for the "Last Updated" date. I set the Properties
for this field so that the initial value is Date(), and then check calculate
this formula automatically.

Whenever I visit that page and make a change, the Last Updated field gets
updated with the current timestamp. So far, so good.

The problem (I think) appears to be when I make a change to one of the OTHER
pages of the form, but not that page with the custom field.

Is there a way to set the field on one page to automatically update whenever
ANY part of the entry is updated?

Thanks,
Keith


 




Thread Tools
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
modifying previous form prog Outlook - Using Forms 6 July 21st 07 12:33 AM
Categories field doesn't get updated with new information SherryC Outlook - Using Contacts 0 March 7th 07 08:06 PM
Modifying a Form jessica_boxer@yahoo.com Outlook and VBA 1 April 5th 06 01:59 AM
Populate Company field from Contact field in custom task form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:37 PM
new field in contact form Adrica Outlook - Using Contacts 1 January 15th 06 06:06 PM


All times are GMT +1. The time now is 12:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Loans - Best Credit Cards - Xbox Mod Chip - Debt Help - Pimpin MySpace Profiles