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

Custom Form Forcing Save



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 24th 07, 03:08 PM posted to microsoft.public.outlook.program_forms
Cass
external usenet poster
 
Posts: 31
Default Custom Form Forcing Save

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  
Old September 24th 07, 03:22 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Custom Form Forcing Save

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  
Old September 24th 07, 03:39 PM posted to microsoft.public.outlook.program_forms
Cass
external usenet poster
 
Posts: 31
Default Custom Form Forcing Save

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  
Old September 24th 07, 06:25 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Custom Form Forcing Save

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


All times are GMT +1. The time now is 05:53 AM.


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.