Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Pulling data into Word using DDE

Posted on 2011-03-24
6
Medium Priority
?
1,262 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
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
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

772 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