![]() |
| 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. |
|
|||||||
| Tags: contact, field, form, last, modifying, updated |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |