Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2016, 01:43 AM
NickLocke NickLocke is offline Repetition of connection data across multiple database fields Windows 10 Repetition of connection data across multiple database fields Office 2016
Novice
Repetition of connection data across multiple database fields
 
Join Date: Oct 2016
Posts: 1
NickLocke is on a distinguished road
Default Repetition of connection data across multiple database fields

I have a Word document which pulls in lots of data from SQL Server, using database fields (I have about 20 fields so far and it's growing). Basically it's a technical document which explains stuff and then pulls in data tables to complete the picture.



It's working well, but I have noticed that the database connection details are repeated on every single field - which doesn't feel like it will be easy to maintain if anything changes in the future.

I have tried defining an ODC file and then referencing that when I create the fields. The reference works fine, but Word then pulls all of the detail from the ODC file into the field itself - so I still seem to have the repetition issue.

I guess the simple question is whether it is possible to define a database connection once and then re-use it across many database fields and/or whether there is a different way altogether to bring the data in from SQL Server.

Thanks
Reply With Quote
  #2  
Old 10-31-2016, 01:51 AM
macropod's Avatar
macropod macropod is offline Repetition of connection data across multiple database fields Windows 7 64bit Repetition of connection data across multiple database fields Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could try bookmarking one such database connection string, then referring to just the bookmark (via a cross-reference) for the remainder. If you use a SET field to create/maintain the database connection string, you could then store the database connection string outside any of the database fields.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
database field



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with data connection sql joins wpflum Excel 0 08-03-2016 08:45 AM
MS Excel - SQL Data Query Connection to MS Project - Resource Displayed in Multiple lines not in one AKent Excel 3 08-26-2015 01:34 PM
Repetition of connection data across multiple database fields Update data connection - path, database name, query definition jaworski_m Excel 1 08-03-2015 02:37 AM
Data Connection - auto logoff timshep Excel 0 08-02-2015 04:29 AM
Why does my data take up multiple fields?? alex1fly Excel 2 07-01-2015 08:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft