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

Linking Contact to Contact is broken



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 4th 07, 04:13 AM posted to microsoft.public.outlook.program_forms
Stephen Morgan
external usenet poster
 
Posts: 15
Default Linking Contact to Contact is broken

Hi everyone,
Using Outlook 2003, I've designed my own Contacts page, but have created
a problem. When I make a new contact, and link it to an existing contact
in the bottom left-hand corner of my form, the links work, yet with
existing forms, if I press the existing contacts name, I get "Cannot
perform the requested operation. The command selected is not valid for
this recipient". More annoying, the links work on some contacts and not
others!
Any ideas what I have done, and how to fix it?
Ads
  #2  
Old February 4th 07, 02:46 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Linking Contact to Contact is broken

You mean existing items, not existing forms, right? Forms are the UI/code templates. They contain no data.

Did you recently move your .pst file?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Stephen Morgan" wrote in message ...
Hi everyone,
Using Outlook 2003, I've designed my own Contacts page, but have created
a problem. When I make a new contact, and link it to an existing contact
in the bottom left-hand corner of my form, the links work, yet with
existing forms, if I press the existing contacts name, I get "Cannot
perform the requested operation. The command selected is not valid for
this recipient". More annoying, the links work on some contacts and not
others!
Any ideas what I have done, and how to fix it?

  #3  
Old February 4th 07, 09:13 PM posted to microsoft.public.outlook.program_forms
Stephen Morgan
external usenet poster
 
Posts: 15
Default Linking Contact to Contact is broken

Sue Mosher [MVP-Outlook] wrote:
You mean existing items, not existing forms, right? Forms are the UI/code templates. They contain no data.

Did you recently move your .pst file?

Yes, I do mean items, and no I have not moved my .pst file. I can
manually check all the linked items, and re-create, but that will be a
pain as I have a few hundred of them!
Any further ideas please?
  #4  
Old February 4th 07, 09:34 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Linking Contact to Contact is broken

See if the VBA procedure at http://www.outlookcode.com/codedetail.aspx?id=1519 helps you reconnect the links. If you're new to Outlook VBA, see http://www.outlookcode.com/d/vbabasics.htm for basics.

If the linked contacts are in a folder other than your default Contacts folder, you will have to adapt the script to search in that specific folder or folders. The posted sample searches only the user's default Contacts folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Stephen Morgan" wrote in message ...
Sue Mosher [MVP-Outlook] wrote:
You mean existing items, not existing forms, right? Forms are the UI/code templates. They contain no data.

Did you recently move your .pst file?

Yes, I do mean items, and no I have not moved my .pst file. I can
manually check all the linked items, and re-create, but that will be a
pain as I have a few hundred of them!
Any further ideas please?



"Stephen Morgan" wrote in message ...
Hi everyone,
Using Outlook 2003, I've designed my own Contacts page, but have created
a problem. When I make a new contact, and link it to an existing contact
in the bottom left-hand corner of my form, the links work, yet with
existing forms, if I press the existing contacts name, I get "Cannot
perform the requested operation. The command selected is not valid for
this recipient". More annoying, the links work on some contacts and not
others!
Any ideas what I have done, and how to fix it?

  #5  
Old February 5th 07, 08:07 AM posted to microsoft.public.outlook.program_forms
Stephen Morgan
external usenet poster
 
Posts: 15
Default Linking Contact to Contact is broken

Sue Mosher [MVP-Outlook] wrote:
See if the VBA procedure at http://www.outlookcode.com/codedetail.aspx?id=1519 helps you reconnect the links. If you're new to Outlook VBA, see http://www.outlookcode.com/d/vbabasics.htm for basics.

If the linked contacts are in a folder other than your default Contacts folder, you will have to adapt the script to search in that specific folder or folders. The posted sample searches only the user's default Contacts folder.

Thanks for the "Hello World" test macro - it worked. There is a problem
with the other macro, and am not sure how to debug. I get "Compile
error: Sub or Function not defined" and it highlights the word "quote"
in this line of your macro when I run it...

"strFind = "[FullName] = " & Quote(objLink.Name)"

Could/would you please look at your code, and fix, please???
  #6  
Old February 5th 07, 12:47 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Linking Contact to Contact is broken

Sorry. I forgot to include the Quote() function, which is simply:

Function Quote(val) as String
Quote = Chr(34) & CStr(val) & Chr(34)
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Stephen Morgan" wrote in message ...
Sue Mosher [MVP-Outlook] wrote:
See if the VBA procedure at http://www.outlookcode.com/codedetail.aspx?id=1519 helps you reconnect the links. If you're new to Outlook VBA, see http://www.outlookcode.com/d/vbabasics.htm for basics.

If the linked contacts are in a folder other than your default Contacts folder, you will have to adapt the script to search in that specific folder or folders. The posted sample searches only the user's default Contacts folder.

Thanks for the "Hello World" test macro - it worked. There is a problem
with the other macro, and am not sure how to debug. I get "Compile
error: Sub or Function not defined" and it highlights the word "quote"
in this line of your macro when I run it...

"strFind = "[FullName] = " & Quote(objLink.Name)"

Could/would you please look at your code, and fix, please???

  #7  
Old February 5th 07, 01:52 PM posted to microsoft.public.outlook.program_forms
Stephen Morgan
external usenet poster
 
Posts: 15
Default Linking Contact to Contact is broken

Sue Mosher [MVP-Outlook] wrote:
Sorry. I forgot to include the Quote() function, which is simply:

Function Quote(val) as String
Quote = Chr(34) & CStr(val) & Chr(34)
End Function

I think we are getting close, but you will have to give me a tiny bit
more information - where do I insert that extra code? In the body of
that existing code, and if so where? It was not obvious to me - sorry!
I'm not a VBA Guru like you, so please have patience with me!!!
  #8  
Old February 5th 07, 02:40 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Linking Contact to Contact is broken

Put all the code in the same VBA code module.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Stephen Morgan" wrote in message ...
Sue Mosher [MVP-Outlook] wrote:
Sorry. I forgot to include the Quote() function, which is simply:

Function Quote(val) as String
Quote = Chr(34) & CStr(val) & Chr(34)
End Function

I think we are getting close, but you will have to give me a tiny bit
more information - where do I insert that extra code? In the body of
that existing code, and if so where? It was not obvious to me - sorry!
I'm not a VBA Guru like you, so please have patience with me!!!

  #9  
Old February 6th 07, 09:22 AM posted to microsoft.public.outlook.program_forms
Stephen Morgan
external usenet poster
 
Posts: 15
Default Linking Contact to Contact is broken

Sue Mosher [MVP-Outlook] wrote:
Put all the code in the same VBA code module.

Sue,
Thanks for the hint, but I cannot determine EXACTLY where I should be
copying the second piece of code. Should it ALL be in
"ThisOutlookSession" or in "Module1"? Should the second piece of code be
embedded inside the first lines of code? If so, where?
As you can gather, it's not yet fixed. Any further help greatfully
accepted, but if one more shot does not work, I'll revert to doing it by
hand.
  #10  
Old February 6th 07, 12:27 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Linking Contact to Contact is broken

It doesn't matter which module you put the code in. They are two separate procedures. One needs to follow another. THe order doesn't matter.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Stephen Morgan" wrote in message ...
Sue Mosher [MVP-Outlook] wrote:
Put all the code in the same VBA code module.

Sue,
Thanks for the hint, but I cannot determine EXACTLY where I should be
copying the second piece of code. Should it ALL be in
"ThisOutlookSession" or in "Module1"? Should the second piece of code be
embedded inside the first lines of code? If so, where?
As you can gather, it's not yet fixed. Any further help greatfully
accepted, but if one more shot does not work, I'll revert to doing it by
hand.

 




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
Linking Outlook fields from the "Contact Folder" to a custom form in Outlook... Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 December 26th 06 01:32 PM
Linking Outlook fields from the "Contact Folder" to a custom form in Outlook... Jeff Outlook - General Queries 1 December 26th 06 04:50 AM
Linking Outlook fields from the "Contact Folder" to a custom form in Outlook... Jeff Outlook - Using Forms 0 December 24th 06 10:04 PM
Linking excell to Oulook Contact list Miles Outlook and VBA 1 November 16th 06 03:45 PM
Business Contact Manager should allow linking of multiple items Corey Glover Outlook - Using Contacts 0 February 27th 06 10:21 PM


All times are GMT +1. The time now is 06:35 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.