Solved

Pulling data into Word using DDE

Posted on 2011-03-24
6
1,095 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:daiwhyte
Comment Utility
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
Comment Utility
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
Comment Utility
Ok, after a bit of fiddling about, Ive got it working. thank you GMG
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Salesforce.com’s Console is a great tool to view activities, leads, contacts, accounts and opportunities all in one screen. It is particularly effective during call blocks and working numerous activities at a time in a quick, repetitive fashion (suc…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now