Solved

Pulling data into Word using DDE

Posted on 2011-03-24
6
1,126 Views
Last Modified: 2013-11-15
Ive got an application form which Im pulling data from goldmine. Ive been able to populate most of the form since the fields are standard but Ive got an address field which I need to pull three different fields from goldmine which are

UPRPRVADD1
UPRPRVADD2
UPRPRVADD3
UPRPRVPCDE

When I right click on the text box, Ive selected Edit, it allows me to use a formula.

Im trying to create a formula so it pulls all the above fields, my best guess was

=CONTACT2->UPRPRVADD1 & " " & CONTACT2->UPRPRVADD2 & " " & CONTACT2->UPRPRVADD3 & " " & CONTACT2->UPRPRVPCDE

I get syntax error when I insert this.


0
Comment
Question by:daiwhyte
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 12

Expert Comment

by:GMGenius
ID: 35206199
CONTACT2->UPRPRVADD3 is the normal correct forumla, however you dont explain how you are using the DDE

can you provide a test document that shows this.
0
 

Author Comment

by:daiwhyte
ID: 35207130
DDEAUTO GoldMine Data CONTACT2->UA1JBYRS \*CHARFORMAT  \* MERGEFORMAT

The above is how the data is pulled, I got this from selecting Edit Field option. Does that help?
Not able to supply the form, its got sensitive stuff on it, sorry GMG.
0
 
LVL 12

Expert Comment

by:GMGenius
ID: 35207403
The simplest way is to add each field with a space after each

{DDEAUTO GoldMine Data CONTACT2->UPRPRVADD1 \*CHARFORMAT  \* MERGEFORMAT } {DDEAUTO GoldMine Data CONTACT2->UPRPRVADD2 \*CHARFORMAT  \* MERGEFORMAT }  {DDEAUTO GoldMine Data CONTACT2->UPRPRVADD3 \*CHARFORMAT  \* MERGEFORMAT }  {DDEAUTO GoldMine Data CONTACT2->UPRPRVPCDE\*CHARFORMAT  \* MERGEFORMAT } 

Open in new window


You cant easily combine fields inside the { } fields
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:daiwhyte
ID: 35240291
When I try to create a formula and insert the above suggestion into the formula, it still gives

!Syntax Error, {
0
 
LVL 12

Accepted Solution

by:
GMGenius earned 500 total points
ID: 35240442
Hi,

You cant put all that in the formula, you have to insert multiple formulas, if you have the GoldMine word addin loaded you can just choose, Insert field, choose any field to start , then you can edit it

Right click on the inserted field and select , "Toggle field codes" to allow you to see it. then you can edit the fields and change it for example.

if you insert the company field you will see
{DDEAUTO GoldMine Data &Company \*CHARFORMAT  \* MERGEFORMAT }

Change this too
{DDEAUTO GoldMine Data CONTACT2->UPRPRVADD1\*CHARFORMAT  \* MERGEFORMAT }

then copy the field and paste, then edit the next one. and so on.

0
 

Author Closing Comment

by:daiwhyte
ID: 35374007
Ok, after a bit of fiddling about, Ive got it working. thank you GMG
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question