![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
On my form I have the following code:
Function Item_Write() If Item.UserProperties.Find("Utility") "" Then If Item.UserProperties.Find("CityState") "" Then Item.FileAs = Item.UserProperties.Find("Utility") & vbcrlf & _ Item.UserProperties.Find("CityState") Else Item.FileAs=Item.UserProperties.Find("Utility") End If Else Item.FileAS=Item.UserProperties.Find("CityState") End If End Function When I try to use the default Contacts button on the custom form it gives me this "The item must be saved. Would you lilke to save it now?" Also, the form is being named "()" in the title bar. Anybody know why it is doing this? |
Ads |
#2
|
|||
|
|||
![]()
When I try to use the default Contacts button on the custom form it
gives me this "The item must be saved. Would you lilke to save it now?" This sounds like normal behavior. A contact must be saved before you can link it to other contacts. Also, the form is being named "()" in the title bar. Do you have a formula on the FileAs field, in addition to your code? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Cass" wrote in message ps.com... On my form I have the following code: Function Item_Write() If Item.UserProperties.Find("Utility") "" Then If Item.UserProperties.Find("CityState") "" Then Item.FileAs = Item.UserProperties.Find("Utility") & vbcrlf & _ Item.UserProperties.Find("CityState") Else Item.FileAs=Item.UserProperties.Find("Utility") End If Else Item.FileAS=Item.UserProperties.Find("CityState") End If End Function When I try to use the default Contacts button on the custom form it gives me this "The item must be saved. Would you lilke to save it now?" Also, the form is being named "()" in the title bar. Anybody know why it is doing this? |
#3
|
|||
|
|||
![]()
On Sep 24, 9:22 am, "Sue Mosher [MVP-Outlook]"
wrote: When I try to use the default Contacts button on the custom form it gives me this "The item must be saved. Would you lilke to save it now?" This sounds like normal behavior. A contact must be saved before you can link it to other contacts. Also, the form is being named "()" in the title bar. Do you have a formula on the FileAs field, in addition to your code? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Cass" wrote in glegroups.com... On my form I have the following code: Function Item_Write() If Item.UserProperties.Find("Utility") "" Then If Item.UserProperties.Find("CityState") "" Then Item.FileAs = Item.UserProperties.Find("Utility") & vbcrlf & _ Item.UserProperties.Find("CityState") Else Item.FileAs=Item.UserProperties.Find("Utility") End If Else Item.FileAS=Item.UserProperties.Find("CityState") End If End Function When I try to use the default Contacts button on the custom form it gives me this "The item must be saved. Would you lilke to save it now?" Also, the form is being named "()" in the title bar. Anybody know why it is doing this?- Hide quoted text - - Show quoted text - No, that code is all there is. |
#4
|
|||
|
|||
![]()
What are the values of Utility and CityState when that happens? Feel free to put in a MsgBox statement for troubleshooting.
I don't think your code provides a solution for the case where both those properties are blank. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Cass" wrote in message oups.com... On Sep 24, 9:22 am, "Sue Mosher [MVP-Outlook]" wrote: Also, the form is being named "()" in the title bar. Do you have a formula on the FileAs field, in addition to your code? "Cass" wrote in glegroups.com... On my form I have the following code: Function Item_Write() If Item.UserProperties.Find("Utility") "" Then If Item.UserProperties.Find("CityState") "" Then Item.FileAs = Item.UserProperties.Find("Utility") & vbcrlf & _ Item.UserProperties.Find("CityState") Else Item.FileAs=Item.UserProperties.Find("Utility") End If Else Item.FileAS=Item.UserProperties.Find("CityState") End If End Function Also, the form is being named "()" in the title bar. Anybody know why it is doing this?- Hide quoted text - - Show quoted text - No, that code is all there is. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 custom contact form save and distribute | Dealmasters | Outlook - Using Forms | 3 | February 6th 07 08:36 PM |
Custom form in public folder always wants to save changes | Tom G. | Outlook - Using Forms | 6 | November 10th 06 08:59 PM |
Print or save custom form without sender's information | andreag | Outlook - General Queries | 0 | May 23rd 06 03:43 PM |
Emailing a contact vCard with custom form loses all custom info | Kim | Outlook - Using Contacts | 7 | April 27th 06 01:21 AM |
Cannot Save Custom Form | Dave Hogg | Outlook and VBA | 3 | January 26th 06 07:13 PM |