Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Pulling data into Word using DDE

Posted on 2011-03-24
6
Medium Priority
?
1,155 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
Note: You must have administrative privileges in order to create/edit Roles. Salesforce.com (http://www.salesforce.com/) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales and marke…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
Suggested Courses

715 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