PC Review


Reply
Thread Tools Rate Thread

How can changing one field changes the others related?

 
 
cyberdude
Guest
Posts: n/a
 
      23rd Feb 2008
Hi,

I am using Word 2003. I have a customer list containing the
customers' names, titles and telephone numbers. I need to insert this
information into a Word document. I hope to make a drop-down list in
the document from which I can choose a customer's name and, after
that, the phone number and title of the selected customer in the Word
document can be updated automatically. Could someone help me with
that? Thank you.

Mike
 
Reply With Quote
 
 
 
 
Jay Freedman
Guest
Posts: n/a
 
      23rd Feb 2008
On Fri, 22 Feb 2008 17:16:15 -0800 (PST), cyberdude <(E-Mail Removed)>
wrote:

>Hi,
>
>I am using Word 2003. I have a customer list containing the
>customers' names, titles and telephone numbers. I need to insert this
>information into a Word document. I hope to make a drop-down list in
>the document from which I can choose a customer's name and, after
>that, the phone number and title of the selected customer in the Word
>document can be updated automatically. Could someone help me with
>that? Thank you.
>
>Mike


If you set up your customer list as a mail merge source document, you can easily
"merge" one selected customer's data at a time into a main document that has
merge fields. See http://sbarnhill.mvps.org/WordFAQs/E...MailMerges.htm,
http://www.word.mvps.org/FAQs/MailMe...DataSource.htm,
http://www.word.mvps.org/FAQs/MailMe...AMailMerge.htm, and
http://www.gmayor.com/mail_merge_lab...th_word_xp.htm.

If you'd rather stick with your original plan (which will be more work), see
http://gregmaxey.mvps.org/Linked_DropDown_Fields.htm for some techniques that
will help.

You'll need a macro similar to the one in the Linked_Dropdown article that runs
when the user leaves the dropdown. Instead of filling up another dropdown,
though, you want the macro to fill in either form fields or bookmarks with
related data. Look at the macro that follows the line "Note: If you simply want
to set the value of a single text field ..." which fills in one form field; the
same kind of code can fill in two (or more) fields.

The related data can be coded directly into the macro, as shown in the article,
or it could be stored in a separate document, text file, or database; each of
these choices would require slightly different code in the macro.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Related field or Auto fill up 2nd field after 1st field entered =?Utf-8?B?S2FvbGk=?= Microsoft Access Getting Started 1 17th Sep 2006 11:40 AM
Showing a field on a form based on another related field =?Utf-8?B?TWl0emlVSw==?= Microsoft Access Getting Started 4 9th Jun 2005 06:28 PM
events related to datarow value changing Antuane Microsoft VB .NET 3 23rd Nov 2004 11:22 AM
events related to datarow value changing Antuane Microsoft Dot NET 1 23rd Nov 2004 10:37 AM
Re: how to make one field show only related information of another field Newbie Microsoft Access Form Coding 1 17th Jul 2003 04:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 PM.